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
Anonymous
Not applicable

Hide particular boxplots if they do not contain a minimum number of values

I have a boxplot with 3 boxes. The different boxes should only be displayed if they contain at least 10 values. I have used the formula below. However, this filtered the whole visual (all three boxes) if one of the boxes contained less than 10 data points. Is there a way to hide individual boxes if they do not contain the minimum number of 10 values?

 
var _min = minx(allselected(Table),Table[Income])
return
calculate(countrows(Table), filter(allselected(Table), Table[Income]=_min))

 

The three boxes are divided according to work situation: professional, part-time, amateur.

 

Thank you for your help.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

I'd like to suggest modify the measure formula to add some conditions with the if statement, you can use them to check the current value to block some calculations.

For these block blank values, they will auto-hide by power bi itself.

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @Anonymous,

I'd like to suggest modify the measure formula to add some conditions with the if statement, you can use them to check the current value to block some calculations.

For these block blank values, they will auto-hide by power bi itself.

Regards,

Xiaoxin Sheng

mahoneypat
Microsoft Employee
Microsoft Employee

You can do that by adding a variable in your measure to count to total number of points in that box, and then using an IF in your return to return blank for each point if the overall count is too low. 

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.