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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to hide or show field in report extension?

(0) ShareShare
ReportReport
Posted on by 481

How do I show or hide a text field on my custom sales invoice report (via report extension) depending on a value of a certain field on the invoice.

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    98,242 Super User 2026 Season 1 on at

    Hi, If you are using RDLC, you can use the iif function below.

    https://docs.microsoft.com/en-us/sql/reporting-services/report-design/expression-examples-report-builder-and-ssrs?view=sql-server-ver15#DecisionFunctions

    pastedimage1652746485062v2.png

    Visibility is true when a certain field is True.

    pastedimage1652746581505v3.png

    In addition, if the field you mentioned is already in the DataItem, you don't need to use ReportExtension, you only need to modify the Layout file.

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    21,788 Moderator on at

    Hi jdrco,

    You can go to that Text box Property in the report design layout, and check the visibility property and then go to expression icon and put the values like below.

    =iif(First(Fields!Textbox.Value, "DataSet_Result")='Your value',false,true)

    and then click ok button after putting above code.

    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,055 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,063 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,014 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans