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,
I need help with Top 5 sales. My power table looks like the first table. I need to transform the data as the second table that shows top 5 sales and rest is categorised under others
Solved! Go to Solution.
Hi @Lionel_Charley ,
Create below 2 calculated columns:
Place Rank =
RANKX(
ALL('Sales by Place'[Place]),
CALCULATE(
SUM ( 'Sales by Place'[Sales]),
ALLEXCEPT('Sales by Place', 'Sales by Place'[Place])
)
)
New Place =
IF(
'Sales by Place'[Place Rank] >= 1 && 'Sales by Place'[Place Rank] <= 5, 'Sales by Place'[Place],
"Others"
)
Let me know if you require the .pbix.
Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!! Proud To Be a Super User !!! |
Thank you all for the support
Hi @Lionel_Charley ,
Create below 2 calculated columns:
Place Rank =
RANKX(
ALL('Sales by Place'[Place]),
CALCULATE(
SUM ( 'Sales by Place'[Sales]),
ALLEXCEPT('Sales by Place', 'Sales by Place'[Place])
)
)
New Place =
IF(
'Sales by Place'[Place Rank] >= 1 && 'Sales by Place'[Place Rank] <= 5, 'Sales by Place'[Place],
"Others"
)
Let me know if you require the .pbix.
Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!! Proud To Be a Super User !!! |
you need to watch this
https://www.sqlbi.com/articles/showing-the-top-5-products-and-others-row/
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 |
---|---|
104 | |
96 | |
80 | |
67 | |
62 |
User | Count |
---|---|
137 | |
106 | |
104 | |
81 | |
63 |