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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Expression Error

I have used the following set expression to calculate my value and made it free from ZIP, Name and Territory selection by passing  ZIP=, Name=, TERRITORY=  (i.e. Null Values) but still if i am making any selection in ZIP, Name and Territory the value of my expression is changing. What could be the reason.
sum({$<%EPID={1},Segment={'Advocates'},ZIP=, Name=, TERRITORY=>} (eTRx_Volume))/sum( {$<%EPID={7},Segment={'Advocates'}, ZIP=, Name=, TERRITORY=>} (eTRx_Volume)
My Expression is
6 Replies
Not applicable
Author

Try with isnull(ZIP), isnull(TERRITORY).. instead of ZIP=,TERRITORY=

Swapnil

Not applicable
Author

How do u write Isnull in Set Expression. I am trying

sum({$<%EPID={1},Segment={'Advocates'}, Isnull(ZIP), Isnull(Name), Isnull(TERRITORY)>}

but this is giving me an error

jagannalla
Partner - Specialist III
Partner - Specialist III

No it should work perfectly according to your expr. Can you share your sample file so it helps us to look on it.

SunilChauhan
Champion II
Champion II

use below code

sum({<%EPID={1},Segment={'Advocates'},ZIP=, Name=, TERRITORY=>} (eTRx_Volume))/sum( {<%EPID={7},Segment={'Advocates'}, ZIP=, Name=,TERRITORY=>} (eTRx_Volume) )

hope this helps

Sunil Chauhan
Not applicable
Author

I am using the same expression but it is not working.

SunilChauhan
Champion II
Champion II

can you attached a sample file

??????

Sunil Chauhan