Forum Discussion

KG1's avatar
KG1
Icon for Resolver I rankResolver I
6 years ago

Historical Data Reports

Hi,

 

Would someone be able to kindly help me with this problem

 

I have a data table which contains the created date and completion date of a unique work order

 

I need to look back over time and report on the status of the work basket at a particular point in time

 

I have supplied a snapshot of dummy data I created in Excel

Work Order NumberCreated DateActual EndTime to Complete
1215/08/201921/08/20196
12315/08/2019  
23416/08/201919/08/20193
34516/08/2019  
45616/08/201903/09/201918
56716/08/2019  
67816/08/201920/08/20194
78916/08/201921/08/20195
90016/08/201920/09/201935
101116/08/201920/08/20194
112216/08/201920/08/20194
123316/08/201919/08/20193
    
134402/09/201904/09/20192
145502/09/2019  
156602/09/201902/09/20190
167702/09/201903/09/20191
178803/09/201905/09/20192
189903/09/2019  
201003/09/201909/09/20196
212103/09/201906/09/20193
223203/09/201918/09/201915
234303/09/2019  
245403/09/201903/09/20190
256503/09/2019  

 

I need to able to show the following for each month

 

For August 19:

 

Count the number of orders not completed before month end (ignore any completed >01/09/19)

 

The average cycle time of all the orders that were completed before month end

 

For Sept

This will now become a cumulative number and include all the orders released in August as well

 

Count the total number of orders not completed before month end (ignore any completed >01/10/19)

 

The average cycle time of all the orders that were completed before month end

 

Expected Result

 AugustSept
No of Oustanding Jobs47
Average Cycle time7.2515.8571429

 

Many Thanks

 

4 Replies

  • dax's avatar
    dax
    Icon for Community Support rankCommunity Support

    Hi KG1,

    If possible, could you please explain the logic to me? Count the number of orders not completed before month end in Augest should be 3

    In addition, I want to know how you calculate the Average Cycle time? could you please explain to me?

    Best Regards,
    Zoe Zhi

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

    • KG1's avatar
      KG1
      Icon for Resolver I rankResolver I

      Hi Zoe

       

      Thank you for taking the time to resond

       

      Apologies - yes you are right it should be 3 orders not completed for August

       

      The cycle time is calcuated by totalling the time to complete and dividing by the total number of orders

       

      Many Thanks

       

       

      • KG1's avatar
        KG1
        Icon for Resolver I rankResolver I

        So my work so far

         

        I have created 2 new columns for the created date and actual end date which extracts the Month

         

        Completed Month = Format([Actual End].[Month],"MMM")

         

        I have exported this data into Excel to try and work out the formula for the table visual

         

        I have 2 tables 1. Total Orders Created 2. Total Orders Completed

         

        MonthTotal Orders Created
        August1291
        September1784
        Grand Total3075

         

        MonthTotal Orders Completed
        August479
        September1921
        Outstanding
        Grand Total2400

         

        The output table would be

        August Work Basket812
        September Work Basket675

         

        August Formula = 1291-479 = 812

        Sept Formula = (1784+812)-1921 = 675

         

        How do I replicate this in PowerBI?

         

        Or have I gone about this totally the wrong way?