Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Andrew_2020
Contributor II
Contributor II

Sum previous date record count

Creating a snapshot for our database and using RUN_DATE as the date in which each database run is completed. I need to sum values based on max date -1 (previous day totals)

Currently WORKING Max Date Sum:

Sum( {<RUN_DATE={'$(=Max(RUN_DATE))'}>} RECORD_COUNT)

 

How can I run the previous days totals? I'm used to seeing something like date(max(RUN_DATE)-1)

Labels (1)
3 Replies
kkarlste
Creator
Creator

This not working

kkarlste_0-1695484410164.png

 

kkarlste
Creator
Creator

This working bus I must show label colum MonthYear

Sum( {<RUN_DATE={'$(=Max(RUN_DATE))'}>} QC_EvaluationResult)

kkarlste_0-1695484862734.png

 

Andrew_2020
Contributor II
Contributor II
Author

You're also missing a ' 

Sum({<RUN_DATE={'$(=Max(RUN_DATE))-1'}>}RECORD_COUNT)

This however results in zero.