Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

How to hide a table if a condition is true/false?

Posted on by Microsoft Employee

Hey guys,

with the Report Builder (SQL Server 2016) I have created a layout for one of my reports.

On a RequestPage I added a bool field "LoadWithoutData", which the user can set to true/false.

Now if this field is set to true/false, some tables should be hidden on the report layout.

How can I achieve this?

I have seen that the tables have some properties: "Text Box Properties"

If I select them, I can change the visibility.

But I do not know the syntax...

3010.Syntax.PNG

The field on the RequestPage I also added to the layout, so I can select it here.

So I can write something like this:

=Fields!LoadWithoutData.Value == False

When I run the report, is says that an error has occured, but it say not, which one..

Thanks ;)

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to hide a table if a condition is true/false?

    Hello,

    Try to use following:

    =(Not First(Fields!LoadWithoutData.Value, "Put your dataset name here"))

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans