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

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

Labels (1)
5 Replies
marcus_sommer
MVP
MVP

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

How looked $(vNetClaim)?

- Marcus

upaliwije
Creator II
Creator II
Author

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

marcus_sommer
MVP
MVP

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