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

Filter out any categories that do not have two or more subcategories in a matrix visual

I have a matrix visual with two categories in the row headers. 

 

I would like the main category (in blue) to only show if it has at least two sub categories (the week numbers) below it.  

 

I've done a distinctcount on the blue category&week number but now I need to sum those in this matrix to make it filter only >=2 of these combinations.  If the filter works properly, I should only see WABB on this matrix and not WBD.

 

mamsteroonie_0-1643300726814.png

mamsteroonie_1-1643300748704.png

 

Please note: I think I'm getting messed up with this because the raw data is actually by date, not just week #, so please take that into account.

 

Appreciate anyone's help!

 

2 REPLIES 2
mamsteroonie
Helper I
Helper I

Hi, thank you for your reply.  I was able to solve this by creating a calculated table with only the needed columns and the measure I created with the filters, then doing a calculated column with the earlier function to sum it up by category.  Then I took that count and used it as a filter > 1 on the visual.  

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. 

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.