Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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!