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

How to substract measures as a new measure

Hello great analytics minds:

I am enjoying learning Power BI from you guys. Appreciate your help. 

I have a question, How can I substruct measures and creat a new measure.

Measure diff = CALCULATE(SUM('Table_query__1'[Measure dl Complete Count])+[Measure dl In progress On Track]-CALCULATE(SUM([Measure dl In progress Past Due])))

Appreciate your help.

Thanks

8 REPLIES 8
Anonymous
Not applicable

Unfortunetly VAR _A , B, C is not coming up in my formula window.

@Anonymous ,

Can you share the error messages?

 

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Arul
Super User
Super User

@Anonymous ,

Do you want to calculate the above in a single measure?

 

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Arul
Super User
Super User

@Anonymous ,

Do you want to calculate the above in a single measure?

 

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Anonymous
Not applicable

yes

@Anonymous ,

can you try this,

 

Measure diff = 
VAR _A = SUM('Table_query__1'[Measure dl Complete Count])
VAR _B = [Measure dl In progress On Track]
VAR _C = SUM([Measure dl In progress Past Due])
return _A+_B-_C

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Anonymous
Not applicable

I am not getting the result. 😞

@Anonymous ,

share the error that you are getting.

 





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

Proud to be a Super User!


LinkedIn


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.