Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DarioForm
Helper I
Helper I

Dynamic dashboard that shows TOP N and OTHER values

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    
ProductIDSalesQuantityProfitDiscount
A12103300
A1701100
A21802400,2
B150270,4
B270790
B214014180

 

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.

 

1 ACCEPTED SOLUTION
4 REPLIES 4

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.