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.
Hello,
Within PowerBi, is there a way to caculate the total sales for the Top N of a dataset? I would like to create a calculation that says, for example, that the top 10 products sold make up x% of total sales.
Regards,
Alex
Hi @Anonymous,
Please share some sample data with same data structure for test to coding formula.
Regards,
Xiaoxin Sheng
Hi,
Not sure if this is the most efficient approach, but I got it up and running. I used sample data from the PowerBI Dashboard in a Day assets. The assumption with this solution is that you leverage some sort of Sales fact table, as well as a Product dimension table.
1. Since there is one row per product in the dimension, my first step was to add a calculated column to the Product dimension that represents the total revenue for each product:
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |