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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Expression with variable

Hi All ,

Please assist me in getting the measure correct - 

I have max year in my script - SET vMaxUWYear=Max([UWY_KEY]);

But the below expression is not having result -

Measure - sum({$<[UWY_KEY]={$(vMaxUWYear)}>}GROSS_CLAIMS_PAID)

Please assist.

Thanks in Advance.

1 Solution

Accepted Solutions
sunny_talwar

Try this may be

Sum({$<[UWY_KEY] = {"$(=vMaxUWYear)"}>} GROSS_CLAIMS_PAID)

Or this

Sum({$<[UWY_KEY] = {"$(=$(vMaxUWYear))"}>} GROSS_CLAIMS_PAID)

View solution in original post

1 Reply
sunny_talwar

Try this may be

Sum({$<[UWY_KEY] = {"$(=vMaxUWYear)"}>} GROSS_CLAIMS_PAID)

Or this

Sum({$<[UWY_KEY] = {"$(=$(vMaxUWYear))"}>} GROSS_CLAIMS_PAID)