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! Request now

Reply
CD_2024
New Member

Calculate Difference Between Two Monthly Measures

I hope I can explain this well enough.

I am trying to create a visual showing the difference each month in addition to rolling over open transactions to the next month's total. I have searched the internet for days without any luck. I am new to DAX; however, I am not even sure that is the solution needed.

I am showing work orders created on a monthly basis and also showing work orders completed on a monthly basis. "Work Orders Created" count the dates/rows while "Work Orders Completed" count the dates with blanks removed. Open work orders do not have a completed dates in the data. 

 

note: work orders closed in January may not have been created in January. There is no direct correlation between date created & date completed.  

 

1. I want to show the the delta between Created & Completed work orders each month by count & % of created. 

2. Show remaining open work orders from previous month added to current month created total. 

 

Is this calculation something DAX can do?

 

Example: January - 1428(created)-1285(completed) =143 or 10%

               February - 1217 (created) + 143 (still open from Jan)

CD_2024_0-1705339365045.png

 

Screenshots of same table

CD_2024_1-1705340514946.png

 

CD_2024_2-1705340568084.png

 

 

 

2 REPLIES 2
CD_2024
New Member

@Greg_Deckler I hope this helps explain it better. I think I will focus on objective 1 for now. 

>>The most important parts are:
1. Sample data as text, use the table tool in the editing bar - pasted below

2. Expected output from sample data - count and/or % of created work orders not closed each month

3. Explanation in words of how to get from 1. to 2. - will hold off on this one for now

   - add work orders still open (sum of #1), at end of month, to next month's created work order total

   - think of this as tracking monthly cellular roll over minutes (from way back when)

DATA SAMPLE SET:

            Created On                Work Order     WO Status     Assigned Type   Completed Date

01/06/2023 10:04 AMWO-0015133CompletedInternal1/6/23
01/06/2023 10:26 AMWO-0015134In ProcessExternal 
01/18/2023 07:53 AMWO-0015665CompletedExternal1/26/23
01/23/2023 10:14 AMWO-0015915In ProcessInternal 
02/02/2023 09:11 AMWO-0016423CompletedInternal2/2/23
03/02/2023 03:43 PMWO-0017703CompletedInternal3/8/23
03/08/2023 07:44 AMWO-0017952CompletedInternal3/8/23
04/03/2023 07:37 AMWO-0019248CompletedInternal5/8/23
02/08/2023 02:07 PMWO-0016704In ProcessInternal

 

Greg_Deckler
Community Champion
Community Champion

@CD_2024 So, if I understand correctly, you basically need a PM measure for both of your measures. That can be done a number of ways but generally you would calculate your base measure with modified filters for the previous month. You can use CALCULATE for this or there are No CALCULATE methods as well. However, hard to be specific as I don't have your measure code and you didn't paste your data as text. 

Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.