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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AnaAlbano
Helper I
Helper I

Results based on filtered values

Hello community!

I´m trying to performe a task in Power BI and I´m not finding the right way to do it 😞

The case is: I have a dashboard for a survey analisis. And for the free text answers, we wanted to add a condition that if the user filtered the data (country, function, etc) and the end result is less than 5 responses, the chart with the open text answer should not display any data.

Do you have any idea how could I make this work?

Thank you very much 😀



1 ACCEPTED SOLUTION

@AnaAlbano , there is no comma before < 5

 

if( Calculate(countrows(Table), allselected() ) <5,1, 0)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@AnaAlbano , Create a measure like this and use that in visual level filter

 

if( Calculate(countrows(Table), allselected() ) <5,1, 0)

 

check this measure =0 in visual level filter

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak !

I created the measure, but I am getting this error:

AnaAlbano_0-1669194331165.png

 

Any idea? 🙂

@AnaAlbano , there is no comma before < 5

 

if( Calculate(countrows(Table), allselected() ) <5,1, 0)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you very much @amitchandak! It worked!

 
 
 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.