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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mad
Regular Visitor

Getting a total ignoring the filter on names but taking into account the time filters

Hi,

 

I am trying to get a pivot table running with the following filters set above or as a slicer:

- Calendar week

- Year

 

In the table itself, I want to see the following columns:

 

- Top 10 results name

- Value

- % of the total, ie including everything below the top 10

 

I tested the following formulas: 

 

=Calculate([TOTAL SALES];ALL(Orders)) -> this ignores the need for me to have only the result of this week and year. It gets all results ignoring the time frame which is needed to stay

=DIVIDE([TOTAL SALES];CALCULATE([TOTAL SALES];ALLSELECTED(Orders)) -> this restricts the numbers to the top 10 results

 

I am guessing I need a mix of both and specify a filter with the year and week, but I get errors when I try. How should I proceed here?

 

Thanks,

 

Pauline.

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Mad , Based on what I got you need to try

 

Correct the column - Data[Client Name] // use on what you want top 10

 

divide(calculate([TOTAL SALES],TOPN(10,allselected(Data[Client Name]),[TOTAL SALES],DESC), values(Data[Client Name]))
, calculate([TOTAL SALES],TOPN(10,allselected(Data[Client Name]),[TOTAL SALES],DESC)))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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