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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
failson
New Member

calculate sum of total from two different matrix visual with different filter

hi all, currently I have two different matrix visual with different slicers filter. 

I want to calculate the sum of the total of these 2 matrix.

 

For example, the total expense of first matrix based on option A,B,C are 1,2,3 respectively; that of second matrix based on option D,E,F are 4,5,6 respectively

 

then when I choose A&D, it can return total 1+4=5, if I choose C&F, can return 3+6=9

 

I dont know whether power bi can do above, so  please help, thanks🙏

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @failson ,

If your data is just like this:

vjunyantmsft_0-1735629577388.png

vjunyantmsft_1-1735629583720.png

Then you can easily achieve your expected results through this DAX:

Sum of 2 matrixs = SUM(Table1[Value]) + SUM(Table2[Value])

vjunyantmsft_2-1735629664961.png

vjunyantmsft_3-1735629677731.png


But if your data is not like this, please provide your sample data so that we can better find a solution for you. Thank you!

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

danextian
Super User
Super User

Hi @failson 

 

Are the two matrices' data coming from the same or different tables?

Can you please provide a workable sample data (not an image) and your expected result from that? You may post a link to an Excel or pbix file in the cloud.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
rohit1991
Super User
Super User

Hi Failson,

 

Yes, you can achieve this in Power BI using measures. Here's how:

 

  1. Create measures for totals in each matrix: TotalMatrix1 = SUM(Table1[Expense])
    TotalMatrix2 = SUM(Table2[Expense])

  2. Create a combined measure: CombinedTotal = [TotalMatrix1] + [TotalMatrix2]

  3. Use the CombinedTotal in a card or visual to display the sum based on slicer selections.

  4. Ensure slicer interactions are set correctly via Edit Interactions. This will update dynamically based on your filters.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors