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