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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
JB_AT
Helper III
Helper III

Average of a percentage in a Matrix

Good morning

 

I have a matrix visual and it has 11 Rows(Hierarcies) Company from the DIM_Company table and Hierarchy 1 to 10 from the DIM_Employee Table. They have a relationship with the Hours table.

My measure is a percentage of two measures from the Hours table  DIVIDE( {Measur1, Measure2) 

When I add this measure, I would like to get the Average % of the Hierarchy.
Example: Company is at the top of the hierarchy and shouls show the average of all records in all hierarchies. Hierarchy1 should show the the same but for all below it. And so on

I have tried to follow @GregDeckler  s instructions here https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-... , but I can't replicate.

Any suggestions would be helpful

 

Thanks

 

3 REPLIES 3
Rupak_bi
Impactful Individual
Impactful Individual

please share sample data and desired output.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Hi @Rupak_bi 

 

Here is the desired output

Hierarchy 1Hierarchy 2Hierarchy 3Amount
Company1  64%
 Name1 57.50%
  Name50%
  Name30%
  Name70%
  Name80%
 Name2 70%
  Name60%
  Name70%
  Name70%
  Name80%


I can't provide data. But Compayn1 come from DIM_Company and Names come from DIM_Employee and both dimensions have a 1 to n relationship with the hours table.

 

The percentage Amount measure is calculated from 2 measures coming from the hours table.

 

Thanks

Rupak_bi
Impactful Individual
Impactful Individual

Hi @JB_AT ,

Without sample data and the data model overview, it is hard to provide desired solution. Moreover I also like to know what kind of output you are currently getting with your existing calculations. However, If you refer a measure which is dividing two measures, will not give an average at upper hierarchies. Top get that, the simplest way is to avoid measure and do the divide in a calculated column and refer that. Else, the sample data and the repationship details is really need to understand.

 

thanks.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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