Quantcast
Viewing all articles
Browse latest Browse all 10045

Change text in header textbox depending on boolean parameter in SSRS

I have a report that holds two tables, one is for a "Detail" report and the other a "Summary" report. I've set it where if the Summary paramater (a boolean) is set to true then you only see the "Summary" table and vice versa if it's set to false. But I have a text box in the header that reads " Report (Detail) ". I would like this text box to change depending on the same parameter, so if the parameter is set to "true" then the textbox will read " Report (Summary) " and if set to false it will say " Report (Detail) ". How can I write this expression, I've searched but found nothing other than mentions of IIF expressions but I'm new to SSRS and don't know how to write these off the top of my head yet.

This is how i have the expression for my "Details" visibility table to show if the "Summary" parameter is false (I found this out online too):

=IIF(Parameters!IsSummary.Value = 1, True,False)



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>