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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Muralidharan
New Member

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
Muralidharan
New Member

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

@Muralidharan , 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])))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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