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

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

Max Date in Expression

I am trying to only sum the max date in my expression, here is what I tried so far.

=Sum (if(SNAPSHOT_CCYYMM = 'Max SNAPSHOT_CCYYMM' and CLAIM_STATE= 'Open',1,0))

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe


=Sum (if(SNAPSHOT_CCYYMM = Max(TOTAL SNAPSHOT_CCYYMM') and CLAIM_STATE= 'Open',1,0))


or


=Sum (if(SNAPSHOT_CCYYMM = $(=Max( SNAPSHOT_CCYYMM')) and CLAIM_STATE= 'Open',1,0))

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Maybe


=Sum (if(SNAPSHOT_CCYYMM = Max(TOTAL SNAPSHOT_CCYYMM') and CLAIM_STATE= 'Open',1,0))


or


=Sum (if(SNAPSHOT_CCYYMM = $(=Max( SNAPSHOT_CCYYMM')) and CLAIM_STATE= 'Open',1,0))

Anonymous
Not applicable
Author

Thanks Steve the following one seems to work...

=Sum (if(SNAPSHOT_CCYYMM = $(=Max( SNAPSHOT_CCYYMM')) and CLAIM_STATE= 'Open',1,0))