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: 
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))

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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))