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

Doubt in Matrix

Hello Team,

 

I have a scenario where i need to show only the categories which has values otherwise the category should not be shown also the category should automatically appear if we get any value in future. Is there any solution for this?

 

Thanks in Advance!

 

2 REPLIES 2
Anonymous
Not applicable

Thanks for the swift response @amitchandak ,

 

But if we use the measure which you have shared we are getting the entire sum / count which is been spread across the date range. for instance if we have values 10,20 & 30 for Jan, Feb & Mar respectively and if we use the created measure in the matrix it is giving us 60 (sum of those values) across the entire date range ( from Jan to Dec) everywhere its 60.

amitchandak
Super User
Super User

@Anonymous , That should be the default behavior.

 

Create this measure and check this is not blank in the visual level filter

 

calculate([measure], filter(allselected(Table), Table[Category] = max(Table[Category])))

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

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.