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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
admin_xlsior
Post Prodigy
Post Prodigy

Processing time

Hi all,

 

Can we create measure to calculate processing time per monthly based on some specific date on that transaction. Understand this is very very not clear.

 

For example I have this data :

Order IdCreated dateComplete date
0011/10/20191/25/2019
0021/11/20191/25/2019
0031/12/20191/25/2019
0041/13/20191/25/2019
0051/13/20192/2/2019
0062/1/20192/2/2019
0072/2/20192/2/2019
0082/3/20193/12/2019
0092/4/20193/12/2019
0102/5/20193/12/2019
0113/1/20193/12/2019
0123/2/20193/12/2019
0133/3/20193/12/2019
0143/4/20193/12/2019
0153/5/20193/12/2019
0163/6/20194/10/2019
0174/1/20194/10/2019
0184/2/20194/10/2019
0194/3/20194/10/2019
0204/4/20195/1/2019

 

Order number which I put under orange color (005, 009, 010, 016, 020) is orders that not complete on the month end. 

 

So in my report, when Table visualization with Month displayed, this orders must be counted as WIP order, and then I need to calculate the process time of the order, End of Month date - Orders created date. 

 

Something like this :

image.png

 

In Januari, based on my transaction tabel, Oder #005 which created date on 1/13 not yet completed at the Januari end of month, so it will put on the visualization. counted -> no of WIP = 1, then process time up to end of month is 1/31 - 1/13 = 18 days, and so on

 

Any advice is this achievable with Power BI ?

 

Thanks,

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi  @admin_xlsior ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case.

 

Best regards

Amy Cai

View solution in original post

3 REPLIES 3
admin_xlsior
Post Prodigy
Post Prodigy

Hi, thank you so much for your idea and help. it worked.

v-xicai
Community Support
Community Support

Hi  @admin_xlsior ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case.

 

Best regards

Amy Cai

v-xicai
Community Support
Community Support

Hi @admin_xlsior ,

 

You can create calendar table DateKey ,then create measure Process time(in days) to get process time up to end of month, and create measure No of WIP to count order id which is overdue.

 

DateKey= CALENDARAUTO()

 

Process time(in days) = DATEDIFF(Table1[Created date],EOMONTH(Table1[Created date],0),DAY)

 

No of WIP = CALCULATE(COUNT(Table1[Order Id]),FILTER(ALLSELECTED(Table1),EOMONTH(Table1[Created date],0)<Table1[Complete date]&&(Table1[Created date]<=MAX('DateKey'[Date])&&Table1[Complete date]>=MIN('DateKey'[Date]))))

 

2.png3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Here is my test pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/ER_nvIyBY7ZPkiCCPw...

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.