Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Daily Historical Reporting

Hi,

I have a load script that loads data with a timestamp into a qvd and gives me a table of data with multiple records per unique Primary Key with the timestamps.  The load happens multiple times a day.

The base data looks like this:

   

TeamVolumeOfCallsTimepStamp
A1522/01/2018 15:00
B922/01/2018 15:00
C2022/01/2018 15:00
A2022/01/2018 17:00
B1022/01/2018 17:00
C2522/01/2018 17:00
A2023/01/2018 15:00
B1023/01/2018 15:00
C2523/01/2018 15:00
A2523/01/2018 17:00
B1523/01/2018 17:00
C3023/01/2018 17:00

 

I want to report daily volumes at the end of each day like below:

   

Sum of VolumeOfCallsTimepStamp
Team22/01/201823/01/2018Grand Total
A202545
B101525
C253055
Grand Total5570125

Any pointers on how to achieve this as I'm struggling. I need to be able to identify the max timpestamp for each day and only report off that.

Thanks

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

May be this

Dimension

Team

DateField

Expression

Sum(Aggr(FirstSortedValue(VolumeOfCalls, -TimeStamp), Team, DateField))

Where DateField is created in the script like this

Date(Floor(TimeStamp)) as DateField

sunny_talwar
MVP
MVP

Sample and sample image attached

Capture.PNG