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
trevrobwhite
Advocate I
Advocate I

Weighted Average with hierarchy at different levels

I'm trying to create a clustered column chart (and rador) with drills but I want the weighting to be different at each level, let me explain

 

IDAreaWeightingQ1 2023Q2 2023
IDIdentify70%60%65%
ID.AMAsset Management60%70%80%
ID.AM-1Device Should be secure90%80%85%
ID.AM-2Software inventory10%30%40%
PRProtect30%40%

50%

 

 

Some people may recongonise this as the NIST Framework (which is what it is), the data is just an example.

 

You can see at the top level, ID (Identify) makes up 70% of the weighting with PR (Protect) making the remaining 30%, but then within these categories there is further weighting to each areas, then there is a final third layer doing the same.

 

I've structured the data showing the actual % value and the adjusted value for each weighing.

 

What I'm struggling with is telling PowerBI to use the weighted values in the dataset and don't try and calculate itself by drilling into the children, I almost need it to filter at each level.

 

The result should be something like this comparing each quarter which can be drilled into each section.

trevrobwhite_0-1696502355167.png

trevrobwhite_1-1696502429908.png

 

 

Any hints/tips on how to do this would be much appreciated

1 REPLY 1
MFelix
Super User
Super User

Hi @trevrobwhite ,

 

How do you know in wich level you are? Do you have any way to identify the different levels?

 

If you have you must use the ISINSCOPE to pick the correct level and then get the result you need to be on the visualization.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.