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 been trying to solve a problem for days now, and it's driving me absolutely crazy - any help is very much appreciated!
I have 3 columns: Date, Item and Quantity. All I am trying to achieve is a bar chart where the x-axis is the day (easy enough), then the y axis is the total quantity per day (again, easy), but then I would like to show how much of the daily quantity has been created by the top 5% of the daily items - similar to a pareto, if the 80/20 split was shown on a bar graph
The number of items changes each day, which is why I can't use the top N function. From reading, I have been able to rank my items within each day, but I have no idea where to go from here!
Solved! Go to Solution.
Hi @k_ate_e,
Suppose you have had a [Rank] measure. Then, please add below measure to visual level filter and set its value to 1.
check =
VAR topvalue =
ROUND (
CALCULATE ( DISTINCTCOUNT ( 'Table'[items] ), ALLSELECTED ( 'Table' ) ) * 0.05,
0
)
RETURN
IF ( [Rank] <= topvalue, 1, 0 )
Best regards,
Yuliana Gu
Hi @k_ate_e,
Suppose you have had a [Rank] measure. Then, please add below measure to visual level filter and set its value to 1.
check =
VAR topvalue =
ROUND (
CALCULATE ( DISTINCTCOUNT ( 'Table'[items] ), ALLSELECTED ( 'Table' ) ) * 0.05,
0
)
RETURN
IF ( [Rank] <= topvalue, 1, 0 )
Best regards,
Yuliana Gu
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 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |