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
bharosha
Helper I
Helper I

Not display any data if one of the category count value is < 5

I am trying to get get my visualization to not show any data if one of the category breakdown value is < 5. 

For an example, below is my table. 

bharosha_0-1717081187527.png

 

Aggregate count values are below

bharosha_1-1717081211140.png

 

Upon selection of other filters, when the table value becomes below (one of the category values <= 5), I do not want the table to display any values at all. 

bharosha_2-1717081336794.png

 

1 ACCEPTED SOLUTION

@Gabry , 

below worked

Measure = MINX(SUMMARIZE(ALLSELECTED('Table'),'Table'[Categori],"RowC"COUNT('Table'[ID])),[RowC])

View solution in original post

8 REPLIES 8
Gabry
Super User
Super User

Hello,

not sure to have understood properly.

Measure = minx(summarize(table, category, "Rowcount", count(id)), [Rowcount])

Then in the filter of the visual you put this measure and you select >= 5

 

I think this should work, let me know, bye

@Gabry , With this only the category value which has less than 5, value gets filtered out. I wanted all the data to not show. 

Below is the table with you solution

bharosha_0-1717082594470.png

Only the category A gets filtered out, I wanted if one of the category count is <=5, nothing should show like below

bharosha_1-1717082638715.png

 

ok adjust like this

 

Measure = IF(MINX(SUMMARIZE(ALL('Table'),'Table'[Categori],"RowC", COUNT('Table'[ID])),[RowC])<5,1,0)
 
@bharosha  I just edited the answer, and tested this measure it works. Please mark as accepted solution

it works also with this measure

Measure = MINX(SUMMARIZE(ALL('Table'),'Table'[Categori],"RowC", COUNT('Table'[ID])),[RowC])
 
then put in the visual filter, measure>= 5

@Gabry , it does not work, measure value shows always 0.

@Gabry  see screenshot, not data measure always display 0. 

no data 1.pngno data 2.png

Man if you want to use filter on the same table you need to adjust the measure like this

 

Measure = MINX(SUMMARIZE(ALL('Table'[category]),'Table'[Category],"RowC", COUNT('Table'[ID])),[RowC])
Put the ALL statement just on the column category and not on the whole table

Only if there's one category <5.


Tested again and it works:

 

Gabry_0-1717084716919.png

 

Gabry_1-1717084735482.png

 

@Gabry , 

below worked

Measure = MINX(SUMMARIZE(ALLSELECTED('Table'),'Table'[Categori],"RowC"COUNT('Table'[ID])),[RowC])

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.