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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Unknown
Frequent Visitor

Calculate sum of two tables with slicer on one

Hi!

I have two tables in my report and a slicer being applied to only one of them.

How can I calculate the total amount of the two tables when the slicer is applied?

 

Thank you

3 REPLIES 3
ToddChitt
Super User
Super User

Create a Measure that simply sums the two values:

My Double Sum = SUM (tableA) + SUM(Table B)

If one table is 'filtered' in context, it will affect that measure




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





I didn't explain my problem correctly, sorry.
If applied, the filter will interact with both tables. But in one of my table visuals I disabled the interaction of the slicer with that visual.
I want to replicate that behaviour in my measure.

Break the two measures out, then bring them back together. This makes it easier to verify:

Measure 1 = SUM ( table1[FieldX] )

Measue 2 = CALCULATE ( SUM ( Table2[fieldy] ), ALL (<Table and field that you don't want to affect this measure> ) )

Total Measure = [Measure 1] + [Measure 2]

Put all 3 on a page, with the slicer and see how they respond.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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