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
SP_1
Frequent Visitor

Need help - show Top N Products and share% for each products divided by whole Product totals in DAX

Hi,
I have scnerio to show Top 3 Products and its share % for each product divided by sum of (whole product total) instead top 3 selected products.
Created below 2 measures and its working fine, but the moment if I do Top N in visual level filter it taking only Top 3 product totals instead of all products total.
1 measure --> Calculated(Sum(2022), all (Products)
2 measure Share % -> Divide(sum(2022) , 1 measure) 

Can anyone help on this pls.
Sample data.

SP_1_1-1709953092442.png


Looking for the output like below, I dont want to show the Product "c" highlighted in red, so I excluded in visual level filter, so the next hightest row will dispay "d" (the moment I do top 3 then the total column value showing for the top 3 (ie., 500) instead of whole product total 1180).

SP_1_2-1709953217455.png

 

Thanks in advance.





 

 



2 REPLIES 2
gmsamborn
Super User
Super User

Hi @SP_1 

 

I would like to help but I'm a little unclear about your requirements.

 

Can you show the following?

 

1)  Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

 

2) Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

3) Please explain how you would expect to get from step 1 to 2.

 

4) If possible, please show your past attempts at a solution.

 

 

A .pbix file with sample data would be best.

It resolved thanks

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.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.