March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Power BI Community, I am facing a challenge while calculating the current workload for each month in Power BI. My dataset includes columns for "Planned Order" and I have already calculated a measure called "Launched Count" . Furhter my table is linked to calendar based on creating date column in my main table. I need to calculate the current 'workload' by subtracting the "Launched Count" for the current month and then use that result as a base. Then, I need to add the "Planned Order" count for the next month and again subtract the "Launched Count" from the next month's number. This process should continue for each subsequent month. Here's a simplified example of my data and the desired result in Excel:
Please note that my table has directquery so can only create measures
I would like the the same result as in 'Workload' column in below table.
Planned Order | Launched Count | Workload | |
May | 20 | 5 | 15 |
June | 30 | 2 | 43 |
July | 40 | 20 | 63 |
Could you please help me create a DAX measure that achieves this calculation in Power BI? I tried using the "Workload Running" measure, but it didn't produce the expected result.
Any guidance or assistance would be greatly appreciated
@Ashish_Mathur @dax @amitchandak @PhilipTreacy @tamerj1 @Greg_Deckler
Solved! Go to Solution.
@Ashish_Mathur sir, thanks for your reply. here is the dummy file I created . please have a look
https://drive.google.com/file/d/11myAEB3DNPQpWmOqtWt33c6yCgkWvjjV/view?usp=drive_link
I am providing some additional information
I am really struggling with this so I will really be grateful to you if you can provide me the solution if it exists at all ?
Thanks a lot
Hi,
Share the download link of the PBI file.
@Ashish_Mathur sir, thanks for your reply. here is the dummy file I created . please have a look
https://drive.google.com/file/d/11myAEB3DNPQpWmOqtWt33c6yCgkWvjjV/view?usp=drive_link
I am providing some additional information
I am really struggling with this so I will really be grateful to you if you can provide me the solution if it exists at all ?
Thanks a lot
I cannot take care of the second requirement there. Someone else will help you.
@monak1 , if you have date, or create date date using month, With help from date table
Choose one of the 4
Cumm = CALCULATE(SUM(Table[Planned Order]) - SUM(Table[Lunched Count]),filter(all('Date'),'Date'[date] <=max('Date'[date])))
Cumm = CALCULATE(SUM(Table[Planned Order]) - SUM(Table[Lunched Count]),filter(allselected(date),date[date] <=max(date[Date])))
Cumm on Date = CALCULATE(SUM(Table[Planned Order]) - SUM(Table[Lunched Count]), Window(1,ABS,0,REL, ALL('date'[date]),ORDERBY('Date'[date],ASC)))
Cumm on Date = CALCULATE(SUM(Table[Planned Order]) - SUM(Table[Lunched Count]), Window(1,ABS,0,REL, ALLSELECTED('date'[date]),ORDERBY('Date'[date],ASC)))
Running Total/ Cumulative:
https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=42
Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
ok thanks a lot @amitchandak . However just wanted to tell you that the planned order column in my table is a string so we can't use SUM. isn't it ? moreover, the 'Launched' is a measure and not column. Could you please tell me how to implement it correctly. I have been quite struggling with this . thanks in advance
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
157 | |
97 | |
79 | |
69 |