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

Be 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

Reply
monak1
Helper I
Helper I

Need Help with Dynamic Workload Calculation Based on Planned Order and Launched Count in Power BI

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 CountWorkload
May 20515
June30243
July402063

 

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 

1 ACCEPTED 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 need to substract Launched number from Total Planned Opend Order to get the 'Workload' for the current month and the obtained value will carry forward to next month and will be added to 'Planned Opened Order of that month and will again exclude launched number of that month to get 'workload'
  • In case any value turns negative for 'Workload', then we need to consider it 0 and it will again carry forward . 
  • We can use calculated column if needed as I have now changed the data from Directquery to Import. 

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 

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@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 need to substract Launched number from Total Planned Opend Order to get the 'Workload' for the current month and the obtained value will carry forward to next month and will be added to 'Planned Opened Order of that month and will again exclude launched number of that month to get 'workload'
  • In case any value turns negative for 'Workload', then we need to consider it 0 and it will again carry forward . 
  • We can use calculated column if needed as I have now changed the data from Directquery to Import. 

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.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.