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.
Dear Experts,
I have data like below,
country | level | stage | target | actual | stage actual avg | level actual avg | country actual avg | |
spain | lvl1 | stg1 | 1327 | 4585 | 345.60% | 229.11% | 115.55% | |
spain | lvl1 | stg2 | 1327 | 1494 | 112.61% | 229.11% | 115.55% | |
singapore | lvl2 | stg9 | 1667 | 0 | 0.00% | 0.00% | 115.55% | |
germany | lvl3 | stg5 | 1013 | 1516 | 149.61% | 117.53% | 115.55% | |
germany | lvl3 | stg6 | 1013 | 866 | 85.46% | 117.53% | 115.55% |
I was able to achieve the average of stage and level measure but for country average i am getting different average values.
stage average = average of Arch by stage
level average = average of (stage average) by level
country average = avergae of (level average) by country - this measure is not giving correct vaue. i am getting 138.
Please help
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Country avg: =
AVERAGEX (
ADDCOLUMNS (
FILTER (
SUMMARIZE ( ALL ( 'Table' ), 'Table'[COUNTRY], 'Table'[LEVEL] ),
'Table'[COUNTRY] = MAX ( 'Table'[COUNTRY] )
),
"@levelavg", [Level avg:]
),
[@levelavg]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Country avg: =
AVERAGEX (
ADDCOLUMNS (
FILTER (
SUMMARIZE ( ALL ( 'Table' ), 'Table'[COUNTRY], 'Table'[LEVEL] ),
'Table'[COUNTRY] = MAX ( 'Table'[COUNTRY] )
),
"@levelavg", [Level avg:]
),
[@levelavg]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thank you it works as expected
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |