I am looking at hiding a table in the report and not show during export to CSV based on a parameter. If the parameter is true, it should hide it in the report and export to CSV.
When I hide the table only in the report it works.
=iif(Parameters!parameter.Value=parameter_to_hide,True,False)
If I add the option of hiding the table in the report and in export to CSV, it does not work.
=iif(Parameters!parameter.Value=parameter_to_hide,Globals!RenderFormat.Name = "CSV",False) AND iif(Parameters!parameter.Value=parameter_to_hide,Globals!RenderFormat.Name = "CSV",False)
I also tried with no luck
=iif(Parameters!parameter.Value=parameter_to_hide,IIF(Globals!RenderFormat.Name = "CSV", True, False),False)
Any help would be appreciated