Forum Discussion

admin_xlsior's avatar
admin_xlsior
Post Prodigy
7 years ago
Solved

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 :

 

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,

 

 

 

 

 

 

  • 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

3 Replies

  • v-xicai's avatar
    v-xicai
    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's avatar
    v-xicai
    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]))))

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Here is my test pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/ER_nvIyBY7ZPkiCCPwVeh2MBq1jHFeNKiowhnFenYYPf7g?e=pfZvHf

     

    Best Regards,

    Amy

     

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