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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Date script

sum( {$<[R_YEAR_MONTH]={'>$(=max([R_YEAR_MONTH]))'},POL_TYPE={'F'}>} [PREMIUM] )

my R_YEAR_MONTH=2013-Jan  

I want to sum premium where R_YEAR_MONTH>2013-Jan and type ='F'

I have written above expression. It is not working . please help me correct it

Labels (1)
1 Solution

Accepted Solutions
Not applicable

Try to create a second field with Julian format Date converting R_YEAR_MONTH.

and then use this expression with new field

sum( {$<[NEW_FIELD_DATE]={'>$(=max([NEW_FIELD_DATE]))'},POL_TYPE={'F'}>} [PREMIUM] )


Hope this helps

View solution in original post

1 Reply
Not applicable

Try to create a second field with Julian format Date converting R_YEAR_MONTH.

and then use this expression with new field

sum( {$<[NEW_FIELD_DATE]={'>$(=max([NEW_FIELD_DATE]))'},POL_TYPE={'F'}>} [PREMIUM] )


Hope this helps