Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Counting data based off matching data and dates.

Basically..

 

I have 2 data sets.

 

1 is what our factory plans to build. It's what we've scheduled.

 

The other data set is what we actually built.

 

What I'm attempting to measure is 'On 8/19, we promised that we would build X, Y, Z on 8/22/19.'  

 

How can I get a count of units we correctly predicted we would build and finished them, and the axis needs to be 'download date'

 

First table is the Scheduled Table. 

 

Second table is what we built. We're attempting to count it based off the match with STRT_STGDT

DateDownload TimestampIDENTKits_RequiredLinePRODUCTION_SCHEDULERRollingSERIALSERIAL_ARRAGEMENTSOL_PREVSOL_SEQ_CHECKScheduled DateTM_TC
9/11/2019 0:008/19/2019 23:001QT00239 631Employee Name  52967298/20/2019 0:00 8/20/2019 0:00 
9/12/2019 0:008/19/2019 23:001QT00240 631Employee Name  52967298/20/2019 0:00 8/20/2019 0:00 
9/12/2019 0:008/19/2019 23:001QT00241 631Employee Name  52967298/20/2019 0:00 8/20/2019 0:00 
9/12/2019 0:008/19/2019 23:001QT00242 631Employee Name  52967298/20/2019 0:00 8/20/2019 0:00 
7/17/2019 0:008/19/2019 23:005QH00380 481Employee Name  35707028/20/2019 0:00 8/20/2019 0:00TC
7/18/2019 0:008/19/2019 23:005QH00381 481Employee Name  35707028/20/2019 0:00 8/20/2019 0:00TC
8/15/2019 0:008/19/2019 23:005RT03611 482Employee Name  15127118/20/2019 0:00 8/20/2019 0:00TC
8/16/2019 0:008/19/2019 23:005RT03612 482Employee Name  15127118/20/2019 0:00 8/20/2019 0:00TC
8/17/2019 0:008/19/2019 23:005RT03613 482Employee Name  15127118/20/2019 0:00 8/20/2019 0:00TC
8/20/2019 0:008/19/2019 23:005RT03614 482Employee Name  15127118/20/2019 0:00 8/20/2019 0:00TC
8/21/2019 0:008/19/2019 23:005RT03615 482Employee Name  15127118/20/2019 0:00 8/20/2019 0:00TC
8/22/2019 0:008/19/2019 23:005RT03616 482Employee Name  15127118/20/2019 0:00 8/20/2019 0:00TC
8/14/2019 0:008/19/2019 23:0060T15639 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
8/15/2019 0:008/19/2019 23:0060T15640 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
8/16/2019 0:008/19/2019 23:0060T15641 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
8/17/2019 0:008/19/2019 23:0060T15642 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
8/20/2019 0:008/19/2019 23:0060T15643 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
8/21/2019 0:008/19/2019 23:0060T15644 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
8/22/2019 0:008/19/2019 23:0060T15645 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
8/23/2019 0:008/19/2019 23:0060T15646 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
8/24/2019 0:008/19/2019 23:0060T15647 479Employee Name  1T10658/20/2019 0:00 8/20/2019 0:00TC
9/3/2019 0:008/19/2019 23:0060T15648 479SHAWN RILEY  1T10658/20/2019 0:00 8/20/2019 0:00TC
7/2/2019 0:008/19/2019 23:00B4Y00826REQUIRED109Employee NameRolled 42006158/19/2019 0:00 8/20/2019 0:00TM
8/7/2019 0:008/19/2019 23:00ERJ00857 479Employee Name  47231368/20/2019 0:00 8/20/2019 0:00TC
8/7/2019 0:008/19/2019 23:00ERJ00858 479Employee Name  47231368/20/2019 0:00 8/20/2019 0:00TC
8/7/2019 0:008/19/2019 23:00ERJ00859 479Employee Name  47231368/20/2019 0:00 8/20/2019 0:00TC

 

 

 

IDENTSERIAL_NBRSCHD_DUE_DTSTRT_STG_NBR_CDSTRT_STG_LIT_CDSTRT_STG_DTBLT_STG_NBR_CDBLT_STG_LIT_CDBLT_STG_DTLTS_STG_NBR_CD
   4200615B4Y008267/8/201903SOL8/20/201945BLT8/20/2019NO
   4723136ERJ008578/13/201903SOL8/20/201945BLT12/31/9999NO
   4723136ERJ008588/13/201903SOL8/20/201945BLT12/31/9999NO
   4723136ERJ008598/13/201903SOL8/20/201945BLT12/31/9999NO
   4723136ERJ008608/13/201903SOL8/20/201945BLT12/31/9999NO
   4723136ERJ008618/13/201903SOL8/20/201945BLT12/31/9999NO
   4723136ERJ008628/13/201903SOL8/20/201945BLT12/31/9999NO
   4723136ERJ008638/13/201903SOL8/20/201945BLT12/31/9999NO
   52967291QT002399/17/201903SOL8/20/201945BLT8/20/2019NO
   52967291QT002409/18/201903SOL8/20/201945BLT8/20/2019NO
   52967291QT002419/18/201903SOL8/20/201945BLT8/20/2019NO
   52967291QT002429/18/201903SOL8/20/201945BLT8/20/2019NO

 

 

 

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    I think it is hard to achieve your requirement to use download datetime as axis, there are too many different records with same download datetime. 

    For your requirement, you need to add variable to store table and do looping calculation on its records to calculation through original table to find out specific date records and summary them. 

    After these steps, you can use iteration functions on above variable table to apply second aggregations on their result.

    Can you please explain more about how to calculate your records?(e.g. category fields, filter conditions, detail rolling range...)

    Regards,

    Xiaoxin Sheng

    • Anonymous's avatar
      Anonymous
      Not applicable

      Sure thing! Anonymous .

       

      Here's my thought  process.

       

      I would add a days_forward slider.         

      Days Forward = DATEDIFF(RunningTotalStartOnLineSchedule[Download Timestamp],RunningTotalStartOnLineSchedule[Scheduled Date],DAY)

      This is to return the days we predicted forward. I.e. "I downloaded this data on 8/27/2019. Download Timestamp is going to be the day they said they would do it. I.e. You told me on 8/27/2019(Download Timestamp) you would build Unit X, Y, Z on 8/30/2019(Scheduled Date)"

       

      This will allow us to say 'How accurate are we when we try to schedule 3 days out, or 2 days out, or 1 day out?'

       

      Next my thought process for measuring the adherence is below. I can think of how to do it logically in excel. Maybe it would be return a '1' if true.

      'Countif RunningTotalStartOnLineSchedule[IDENT], matches a serial number in SER_STG_CRNT[SERIAL NUMBER] AND if RunningTotalStartOnLineSchedule[Schedule Date], matches the SER_STG_CRNT[STRT_STG_DT]'

      This is to give me the 'We accurately scheduled (Sum of column) number of units'

       

      Then I was thinking I could divide the Above statement, by Count of RunningTotalSTartOnLineSchedule[Schedule Date]. How many we predicted to get.

       

      The big thing is to make sure we are only counting the explicit units we predicted. Currently we're measuring 'We said we'd build 4 units, and we built 3.' Regardless of if those 3 are any of the original 4.

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Anonymous 

         

        Here's a markup of what I'd like. Green boxes are counted as 'good' red boxes are counted as 'bad'

        We can then do 'Good'/('Good' + 'bad')