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.
Hi all,
I've got the following data:
Customer Number | Score (1-100) | Ranking (as a measure) |
1 | 95 | 1 |
2 | 22 | 6 |
3 | 36 | 5 |
4 | 57 | 3 |
5 | 11 | 8 |
6 | 2 | 9 |
7 | 88 | 2 |
8 | 47 | 4 |
9 | 15 | 7 |
10 | 1 | 10 |
I want to create a funnel graph with the average score per 20% buckets based upon ranks like so:
Bucket | Average Score |
0-20% | 91.5 |
21-40% | 52 |
etc | etc |
How would I go about doing this? I was thinking along the following lines, but it wont work:
Solved! Go to Solution.
Hi, @PowerBI_Account
You can try measure as below:
Ranking =
RANKX ( ALL ( Customer ), CALCULATE ( MAX ( Customer[Score] ) ),, DESC, DENSE )
M_Score 0-20% =
VAR a =
ROUNDDOWN ( 0.2 * MAXX ( ALL ( Customer ), [M_Ranking] ), 0 )
RETURN
CALCULATE ( AVERAGE ( Customer[Score] ), FILTER ( Customer, [M_Ranking] <= a ) )
Please check my sample file for more details.
Best Regards,
Community Support Team _ Eason
I also tried the following, but the MAXX() just returns 1:
Hi, @PowerBI_Account
You can try measure as below:
Ranking =
RANKX ( ALL ( Customer ), CALCULATE ( MAX ( Customer[Score] ) ),, DESC, DENSE )
M_Score 0-20% =
VAR a =
ROUNDDOWN ( 0.2 * MAXX ( ALL ( Customer ), [M_Ranking] ), 0 )
RETURN
CALCULATE ( AVERAGE ( Customer[Score] ), FILTER ( Customer, [M_Ranking] <= a ) )
Please check my sample file for more details.
Best Regards,
Community Support Team _ Eason
Thanks for the effort! Initial testing looks good, will test more in-depth later on in the week.
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 |
---|---|
114 | |
100 | |
78 | |
75 | |
50 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |