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 there,
I'm still new to Power BI and need help in create view for Top 5 item.
Below is the table consist of Product with quantity sold.
I intended to view the report in power bi by viewing only the top five item.
Product Quantity
Apple 200
Banana 150
Cucumber 400
Daikon 350
Egg 300
Fish 250
Ice 100
Juice 50
Kiwi 175
Lemon 275
Mango 375
How do i create the report with power bi?
Thanks,
Robert
Solved! Go to Solution.
You can create another table which only contains the top 5 items using TOPN function.
Top5 = TOPN ( 5, Table1, CALCULATE ( SUM ( Table1[Quantity] ) ) )
You can also create a measure to rank the quantity using RANKX function. And use this measure as visual level filter to get the top N items.
Rank = RANKX ( ALLSELECTED ( Table1[Product] ), CALCULATE ( SUM ( Table1[Quantity] ) ) )
I’ve also uploaded my PBIX file here for reference.
Best Regards,
Herbert
You can create another table which only contains the top 5 items using TOPN function.
Top5 = TOPN ( 5, Table1, CALCULATE ( SUM ( Table1[Quantity] ) ) )
You can also create a measure to rank the quantity using RANKX function. And use this measure as visual level filter to get the top N items.
Rank = RANKX ( ALLSELECTED ( Table1[Product] ), CALCULATE ( SUM ( Table1[Quantity] ) ) )
I’ve also uploaded my PBIX file here for reference.
Best Regards,
Herbert
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |