web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

SSRS Hide/Show TextBox in report

(0) ShareShare
ReportReport
Posted on by 190

 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?

62727.Capture.PNG

Thanks

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    =IIf(Fields!paymenttype.Value="Cash", true, false)

  • Shane Brown Profile Picture
    190 on at

    What if I want it only be visible for 'Cash' , 'Credit' & 'Debit'.

  • Suggested answer
    Andreas Cieslik Profile Picture
    9,267 on at

    =IIf(Fields!paymenttype.Value="Cash" OR Fields!paymenttype.Value="Credit" OR Fields!paymenttype.Value="Debit", true, false)

  • Shane Brown Profile Picture
    190 on at

    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

  • Andreas Cieslik Profile Picture
    9,267 on at

    This could answer your last question:

    stackoverflow.com/.../how-can-i-specify-a-dataset-aggregate-in-this-ssrs-expression

  • Shane Brown Profile Picture
    190 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans