Notifications
Announcements
No record found.
Hi
I am creating a report and have a text box which should only be visible if the option set field 'paymenttype' = 'Cash'.
What should i use for the expression?
Thanks
*This post is locked for comments
=IIf(Fields!paymenttype.Value="Cash", true, false)
What if I want it only be visible for 'Cash' , 'Credit' & 'Debit'.
=IIf(Fields!paymenttype.Value="Cash" OR Fields!paymenttype.Value="Credit" OR Fields!paymenttype.Value="Debit", true, false)
Hi Andreas in my report I have 3 datasets and when i try to run as you saud above i get the following error.
"The Hidden expression for the text bix 'TextBox35' refers directly to the field 'paymenttype' without specifying a dataset Aggregate. When the report contains multiple datasets, field references outside of a data region must be contained within aggregate function which specify a dataset scope."
The Dataset i am using is Dataset1
This could answer your last question:
stackoverflow.com/.../how-can-i-specify-a-dataset-aggregate-in-this-ssrs-expression
Hi Andreas that doesnt really help unfortunately, any other ideas?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2