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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors