Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello everyone,
my objective is to create a measure that show best N values and the sum of others, in a context of dashboard where, as the user click a measure, the graphics change the content.
Moreover, the dataset is of huge dimension, that makes it harder and also the performance should be considered.
Here is a semplification and explanation:
SALES | ||||
ProductID | Sales | Quantity | Profit | Discount |
A1 | 210 | 3 | 30 | 0 |
A1 | 70 | 1 | 10 | 0 |
A2 | 180 | 2 | 40 | 0,2 |
B1 | 50 | 2 | 7 | 0,4 |
B2 | 70 | 7 | 9 | 0 |
B2 | 140 | 14 | 18 | 0 |
The fact table has many dimensions that are related to the final dashboard; to make the dashboard dynamic, I create a SWITCH measure that refers to an unrelated table, that looks like this:
DIMENSION |
TotalSales |
TotalQuanity |
TotalProfit |
TotalDiscount |
its aim is to calculate each dimension, based on the user selection.
I tried many different approaches but really can't get how to make it working as I want;
Hope that I've been exhaustive,
Thanks to everyone that answers,
Dario.
Solved! Go to Solution.
This article might be what you are looking for.
https://blog.gbrueckl.at/2019/05/power-bi-dynamic-topn-others-with-drill-down/
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
This article might be what you are looking for.
https://blog.gbrueckl.at/2019/05/power-bi-dynamic-topn-others-with-drill-down/
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Thanks, it is good, but I m looking for something better in terms of performance
Best to work with calculated columns then. Do a topn and add a new column with an IF statement of the product name or label it as other. This is not dynamic / will be calculated at load time, but will perform way better.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Were you able to solve this one?
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |