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: 
AbhishekGandhi23
Contributor II
Contributor II

Previous Date condition

Hello, 

I am facing an issue with the written condition, 

"sum(if(ST.Date = aggr(nodistinct date(max(ST.Date)-1,'MM/DD/YYYY'),measurenm),Field_Name))"

from the above condition, I'm not getting the previous date sum for mentioned field getting output as Zero.

Can anyone please help with the above issue?

 

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

As below

=sum({<ST.Date={"$(=Date(Max(ST.Date,2)))"}>}measurenm)

OR

=sum({<ST.Date={"$(=Date(Max(ST.Date)-1))"}>}measurenm)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

As below

=sum({<ST.Date={"$(=Date(Max(ST.Date,2)))"}>}measurenm)

OR

=sum({<ST.Date={"$(=Date(Max(ST.Date)-1))"}>}measurenm)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
AbhishekGandhi23
Contributor II
Contributor II
Author

Thanks, @vinieme12  worked!