Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi ,
I have the following requirement where i need to show performance of the hierarchial data across level 1,2,3,4,5.
So average performance of level 4 = Average of level 5, average performance of level 3 = average of level 4 and so on.
We have hierarchial data already in our model as below.
The issue is , we are averaginf the performance and if you consider below example , as per hierarchy , sum of average performance of level 4 is performance of level 3 .
For below financial sustainability for level 3 overall performance is 54% which should be average of level 4 ( 50%,44%,55% ,74%) but if we calculate average its actually 56%.
I have already tried average by category in quick measure as below which is also not working as expected.
AVERAGEX(VALUES(Table4[Product]),CALCULATE(SUM([Amount])))
Note: Since hierarchty is already available in our model i have just created single measure for Performance and using it across and i am using average option from power bi default option.
Kindly help on how to proceed with this issue. Thanks in advance.
If you want level 4 to averaged at level 3
Performance_New average per Item =
AVERAGEX(
(VALUES('Table'[Level 4]),
CALCULATE(SUM(All_Bls_Fct[Performance_New])
))
Hi @amitchandak This is not working as expected as we have data only for level 5,6 , all these 5 and 6 have to roll up till level 1 , hence cannot separately calculate average for level 4 separately.
@binayjethwa , Using isinscope measure for each level
Switch(True() ,
isinscope(Table[Level 6]) , SUM(All_Bls_Fct[Performance_New]) , //lowest level
isinscope(Table[Level 5]) , AVERAGEX(VALUES('Table'[Level 6]),CALCULATE(SUM(All_Bls_Fct[Performance_New]))),
isinscope(Table[Level 4]) , AVERAGEX(VALUES('Table'[Level 5]),CALCULATE(SUM(All_Bls_Fct[Performance_New]))),
// add others
)
Hi @amitchandak
This will be my hierarchial data and i have mapped it to my fact table with level 5,6 which are common across 2 tables.
I can calculate performance only based on values givrn for level 5,6. Hence how do i create measure which will give these averages correctly. Level_mapping is level .
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |