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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Subtract (or add) the sum from a datesbetween measure

Hello Community, 

 

Not sure if my subject title is clear, so I'll simply explain what I am trying to do.  

 

I already have a several "datesbetween" measures set up that give me the dates between two ranges.   This works fine. 

 

What I would like to do is to take the sum of those independent measures, and either be able to add or subtract them using DAX.  

 

For example, if the sum of one the measures is 12 days, and the sum of another is 4 days, I would like to add or subtract, let's say  12 - 4  for a total of 8.   

 

Any help is apppreciated!

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

Did my answer get you the solution you were looking for?

 

Let me know if I can help further.

 

David





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Daviejoe
Memorable Member
Memorable Member

Between Measures = Measure 1 - Measure 2

 

Just create a Measure that contains two measures





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

Proud to be a Super User!




Hi @Anonymous 

 

Did my answer get you the solution you were looking for?

 

Let me know if I can help further.

 

David





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

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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