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.
I have Stores and corresponding Response Rate,i want to show all the Stores where Response Rate is greater than the average of Response Rate
i.e. average of Response rate=0.43 , then Store 2 and Store 3 should be display on the map.
I tried
Store | Response Rate |
1 | 0.1 |
2 | 0.5 |
3 | 0.7 |
Solved! Go to Solution.
Hi @Anonymous ,
Try this:
Measure 2 =
VAR Avg_ =
CALCULATE (
DIVIDE ( SUM ( 'Table'[Response Rate] ), DISTINCTCOUNT ( 'Table'[Store] ) ),
ALLSELECTED ( 'Table' )
)
RETURN
IF ( SUM ( 'Table'[Response Rate] ) > Avg_, 1, 0 )
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
Hi @Anonymous ,
Try this:
Measure 2 =
VAR Avg_ =
CALCULATE (
DIVIDE ( SUM ( 'Table'[Response Rate] ), DISTINCTCOUNT ( 'Table'[Store] ) ),
ALLSELECTED ( 'Table' )
)
RETURN
IF ( SUM ( 'Table'[Response Rate] ) > Avg_, 1, 0 )
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
@camargos88 This solution works but i want the average as a contant.i.e. if i have 100 of stores then it will do average of 100 of stores,then it will show the stores which is greater than average of the Response Rate.
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |