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

Calculate Percent of whole in a column for each row level

I am building a matrix where the "Mix RN's" measure is used to calculate the percentage of rooms rented against the number of rooms selected according to an individual category. The Categories are the Row levels in the matrix visual "Type, Universal Description, Brand, and PMS Description".

The problem is that the measure only works on the lowest level of the matrix, PMS descritpion to Brand. I am trying to make it so that the measure works on all levels of the matrix. Because right now all Brands are coming in as 100% of themselves as opposed to as a percentage of Universal Description. and so on for Universal Description to Type.

 

This is the row heirarchy in the Matrix visual

DMS6.jpg

 

These are my current measures for Mix RN's and Mix RN's Last Year(LY)

DMS4.jpgDMS5.jpg

 

The image below shows the Mix RN's measure calculating the percentage accurately for PMS Description to Brand

DMS1.jpg

This image shows when the Mix RN's measure stops calculating the percenatge when the matrix rows are collapsed. It won't calculate for the Brand as a percentage of Universal Description. i.e aLoft as a percent of Retail.DMS2.jpg

This image shows when the Mix RN's measure stops calculating the percenatge when the matrix rows are collapsed. It won't calculate for the Universal Description as a percentage of Type. i.e Retail as a percent of Transient.

DMS3.jpg

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to the video.

ALL() VS ALLSELECTED() 

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to the video.

ALL() VS ALLSELECTED() 

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.