Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Adding calculated values to table pre-filled with values

Hi, I want to create the below table where in i have some prefilled dtaa present. On this data I then want to add daily calculated values from other table using formulas please assist me how i can do so:

 

DateStart of DayIncomingHandledEnd of Day
30-Mar172514
31-Mar142313
1-Apr1212420
2-Apr202517
3-Apr172-322
4-Apr220022
5-Apr220022
6-Apr222222
7-Apr222519
8-Apr193319
9-AprEnd of day value from previous dayDaily Incoming countStart of Day + Incoming - End of Day (9th April)

End of day count from last data extract for the day (9th April)

10-AprEnd of Day from 9th AprilDaily Incoming Start of Day + incoming - End of Day (10th April)

End of Day (10th April)

 

Here starting from 9-Apr, i want to add data as mentioned:

Start of Day = End of Day from previous day

Daily Incoming = Count of ID from other table for the particular day i.e 9th Apr

End of Day = End of day count of same day 9th April

Handled = (Start of day + Incoming) - End of day

 

Please guide how i can acheive this. I can import this table into my report and then want to add rows daily using the raw data extract i will pull every morning

3 Replies

  • You need to take this differently for measure

    You have to take

    Initial End of Day +Cummlative Incoming - cumulative handled

     

    Cumm Incoming= CALCULATE(SUM(Table[Incoming]),filter(date,date[date] <=max(Table[Date])))

    Cumm Handled= CALCULATE(SUM(Table[Handled]),filter(date,date[date] <=max(Table[Date])))


    Initial End of Day =
    var _min = minx(table,Table[Date])
    return
    calculate(sum(Table[End of Day]) , filter(Date,Date[Date]=_min))

     

    If initial end of the day is 0. you can only work with rest of the two

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks Greg for the valuable input.  🙂  May be I did not state my problem clearly though:

       

      I do not want to add columns to my existing Raw Data extract. I create the Matrix table of using data points from the Raw data sheet and now instead of manually entering data everyday i want to calculate the data in each row daily from my raw data extract taken the next day for ex: tomorrow i.e. 10-Apr when i upload my Raw data, the Table with row for 9th April will auto update for Incoming, End of Day & Handled data

       

      Please help how i can define/caculate values and update the table daily for previous day data

       

      Thanks a ton


      Kind Regards,

      Tushar