Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis

Hi,

I was wondering if instead of doing:

sum($<Region={America}>} Sales)

could I do:

sum($ upper(Region)={AMERICA}>} Sales)     ?

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Eric,

no, this would not be correct. Set Modifiers should always look like the following:

Field = {.... } - the = sign might be replaced by other signs, but the Field name should remain there "as is".

You can, however, use the search functionality and express your condition as part of the search:

sum({$<Region ={"=upper(Region)='AMERICA'"}>} Sales)


Notice the double quotes signifying the search condition and the equal sign in front of the search condition.


Oleg Troyansky

www.masterssummit.com

www.naturalsynergies.com


View solution in original post

3 Replies
jpapador
Partner - Specialist
Partner - Specialist

You would have to do that in the load script.  I don't think it lets you use commands like that in set analysis.

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Eric,

no, this would not be correct. Set Modifiers should always look like the following:

Field = {.... } - the = sign might be replaced by other signs, but the Field name should remain there "as is".

You can, however, use the search functionality and express your condition as part of the search:

sum({$<Region ={"=upper(Region)='AMERICA'"}>} Sales)


Notice the double quotes signifying the search condition and the equal sign in front of the search condition.


Oleg Troyansky

www.masterssummit.com

www.naturalsynergies.com


Not applicable
Author

thanks!