Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
OlegV
Helper II
Helper II

hide a text box if a Tablix shows "NoRowsMessage" or has not rows in PBI report builder

Hi,
In Power Bi report builder, I need to hide a text box if a tablix shows "NoRowsMessage" or does not have any rows.

OlegV_0-1713993017402.png

 



I've tried different options,none of them worked. I pasted them into Properties->Visibility->Hidden->Expression
=IIF(CountRows("DataSet1") > 0, False, True)
=IIF(CountRows(Fields!Title.Value, "DataSet1") < 0, True, False)

Please tell me a solution. 

 

 

2 REPLIES 2
v-xiandat-msft
Community Support
Community Support

Hi @OlegV ,

Below is my table:

vxiandatmsft_0-1714010115223.png

The following Expression might work for you:

IIf(IsNothing(First(Fields!NewColumn0.Value, "DataSet1")) , True , False)

The final output is shown in the following figure:

vxiandatmsft_1-1714010218132.png

vxiandatmsft_3-1714010262118.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@v-xiandat-msft 

Hi, Xianda,

 

thank you. It does not work, it doesn't hide a text box. I've already leant how to hide Tablix when there are not rows. Now I need to hide other texboxes on the report, when a Tablix does not have rows)

I have
1) a Tablix, with data, and
2) a text box in the footer, with an expression showing a date.

When I filter data and there is no rows in the Tablix, I want to hide a textbox with a date.

 

 

OlegV_2-1714025575791.png

 

If there are rows, I want a text box to be shown.

OlegV_1-1714025551681.png

 



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.