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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Total Value break by columns when having multi-select in slicer

Hi all, 

Here's my data table

MonthCategorySubCategoryPublisherQty
Aug-21BookSciencePublisher A10
Aug-21BookComputerPublisher A20
Aug-21BookMarketingPublisher A25
Aug-21BookSciencePublisher B15
Aug-21BookComputerPublisher B25
Aug-21BookMarketingPublisher B25
Aug-21BookComputerPublisher C10
Aug-21MagazineSciencePublisher A10
Aug-21MagazineSciencePublisher B30
Aug-21MagazineSciencePublisher C60
Jul-21BookSciencePublisher A20
Jul-21BookComputerPublisher A15
Jul-21BookMarketingPublisher A40
Jul-21BookSciencePublisher B60
Jul-21BookComputerPublisher B30
Jul-21BookMarketingPublisher B15
Jul-21BookComputerPublisher C50
Jul-21MagazineSciencePublisher A50
Jul-21MagazineSciencePublisher B40
Jul-21MagazineSciencePublisher C20

 

I'm trying to get this exact result:

MonthCategoryPublisherQtyTotal%
Aug-21BookPublisher A308038%
Aug-21BookPublisher B408050%
Aug-21BookPublisher C108013%


Slicer:

  • SubCategory = Science, Computer (multi-select)
  • Month = Aug 21

DAX:

  • Total = CALCULATE(SUM([Qty]),REMOVEFILTERS([Publisher]))
  • % = DIVIDE([Qty],[Total])

 

But im getting this instead:

the total % would be over 100%. 37.5+50+18.18=105.7%

kevinliew_1-1633661505014.png

 

 

I think the total for Publisher C is 55 due to it does not have any book in SubCategory Science, thus only able to get total 55 (which is the total of SubCategory Computer).

 

Can anyone help me on this? i need the Total to be 80 when i multi-select the SubCategory.

 

Edit:

When Im not selecting any slicer, it should look like this

- The total will break by Month and Category, so i can get 100% by each Month and Category

kevinliew_2-1633661553715.png

 

Thanks in advance

3 REPLIES 3
Kumail
Post Prodigy
Post Prodigy

Hello @Anonymous 


If you could send a sample .pbix that demonstrates what you are looking to get. It would really help to provide you with a quick solution. 

 

You can send the sample .pbix file by adding it to your drive or dropbox and add the link here. 

 

Regards
Kumail Raza

V-lianl-msft
Community Support
Community Support

Yes, measure is calculated according to the current row context. In your scene, after using slicer and clearing the [publisher] filter, the total of publisher C is 55.

Your formula has been checked by me and there is no problem:

Vlianlmsft_0-1634017345388.pngVlianlmsft_1-1634017358024.png

 

Anonymous
Not applicable

Hi @V-lianl-msft 

 

Now I hit another problem after i applied to my actual report.

- when nothing is selected in any of the slicers, it takes very long to load or exceeded resource

- the only way to improve that is that i select something to reduce the data

kevinliew_0-1634099980732.pngkevinliew_1-1634099995955.png

 

 

Do you have other DAX that can achieve exact same result but with better performance?

my table has around 800thousands row and it is growing day by day

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.