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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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