Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

SET EXPRESSION

My following set expression does not produce the expected result.

=NUM({<DEPT={'CITY'},MONTH={'JUL'}>}$(vNetClaim),'#,##0.')

This set moidifier I think is not in the correct place. pls correct me

5 Replies
marcus_sommer

There is an aggregation missing then set analysis worked only within them, maybe you could change your expression to:

=NUM(only({<DEPT={'CITY'},MONTH={'JUL'}>} $(vNetClaim)),'#,##0.')

- Marcus

upaliwije
Creator II
Creator II
Author

Thanks

It is still not working

But this part works well      =NUM ($(vNetClaim),'#,##0.')

marcus_sommer

How looked $(vNetClaim)?

- Marcus

upaliwije
Creator II
Creator II
Author

  vNetClaim=sum(rangesum(CL_PROV,+CL_ADJUS,-RE_PROV,-SALVAGE))

marcus_sommer

You couldn't use your variable in this way - your expression should be look like:

num(sum({<DEPT={'CITY'},MONTH={'JUL'}>}

                    rangesum(CL_PROV,+CL_ADJUS,-RE_PROV,-SALVAGE)),'#,##0.')

- Marcus