How to Show or Hide a Tablix Row in SSRS Report in D365FO


Recently, I had a requirement in Dynamics 365 Finance & Operations (D365FO) where I needed to conditionally show or hide a specific row inside a tablix in an SSRS report.

In this blog, I’ll explain how I achieve this by using a value , and use it to control row visibility inside a tablix.

Scenario

Let’s say your tablix contains multiple rows:

| Employee | Department | Salary | Extra Info Row (Bonus, Notes, etc.) |

You want to show/hide the "Extra Info" row based on a value selected by the user.


Step-by-Step Implementation

    Design your tablix with multiple rows.

  • For example:

    • Row 1: Employee Info

    • Row 2: Salary Details

    • Row 3: Extra Info (this is the row we’ll hide/show)

    Set Visibility for the Specific Row

  • Click on the row handle (left side grey bar) for the row you want to show/hide.

  • Right-click → Row Visibility…

  • Choose: "Show or hide based on an expression"


                                            
  • Use the following expression:

                    =IIf(Parameters!YourFieldValue.Value, False, True)

        This tells SSRS:

                If parameter is True, row is hidden → it will be shown.

                If parameter is False, row is not hidden.
 






Comments

Popular posts from this blog

JSON-Based HTTP POST Request from X++ to Retrieve an Access Token

Calling an External API from D365FO Using X++ to Retrieve a Token

Restricting Date Selection in Dynamics 365 FO using X++