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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
he203234
Regular Visitor

Matrix measure per sub categories

Hi Everyone,

 

I have Main Categories, Categories and Sub Categories (all sitting in dim tables)

 

I need it to look like that in matrix:

 

I tried this measure but it's not doing what I want ( I need to see all categories even if it's 0):

InDeptperCat =
CALCULATE(SUMX(EDCurrentPatients,EDCurrentPatients[InDept]),ALLEXCEPT(EDCurrentPatients,EDCurrentPatients[LT Sub Categories]))
Also, it keep repeating sub catecories on a mesure in every category for some reason. 
Thank you!
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@he203234 
Would you please present some sample data of the four tables?

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

@he203234 
Would you please present some sample data of the four tables?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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