cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors