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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
immadahmad
New Member

How to substract two measures?

Hi,

 

I am trying to display a value in a card that subtracts two measures that are affected by slicers. 

 

So basically I have a column of TotalSales and a slicer that has Dates in it. 

 

Measure1 = Sum[TotalSales]

*This measure will be displayed in a card and it have a date slicer that will only interact with this measure.

 

Measure 2 = SUM[TotalSales]

*This measure will be displayed in a second card visual and have a separate dale slicer that will only interact with this measure. I am basically trying to show the sum value of TotalSales at different time periods.

 

Measure 3 = Measure 1 - Measure 2

*This will be displayed in a third card visual and the value should change according to the slicers in Measure 1 and Measure 2

3 REPLIES 3
Idrissshatila
Super User
Super User

Hello @immadahmad,

 

it won't work like this, you need to specify the filtering in the measure.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thanks for the prompt response. Can you please help with rewriting Measure 3 in my problem?

Do I use FILTER? But with FILTER I will have to specify the exact dates I want to filter?

@immadahmad , 

Seems like you need one independent slicer

You need to have two slicer 

refer

- https://youtu.be/WSeZr_-MiTg

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors