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: 
paulwalker
Creator III
Creator III

Exclude Filter

HI Community,

Facing issue with exclude selection, problem is same field using in aggregation.

I have to exclude CO selection, but if i give CO= not working - because same field in Aggregation.

Can you please help me..

NUM(AVG(AGGR((AVG({< GENDER={'M'}>}SALARY)-AVG({< GENDER={'F'}>}SALARY))
/
AVG({< GENDER={'M'}>}SALARY), CO, MUPC_CODE)),'##.#%')

Please note this expression using in textbox.

Thanks in Advance!!

 

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi @paulwalker 

Try like below

NUM(AVG({<CO=>}AGGR((AVG({< GENDER={'M'},CO=>}SALARY)-AVG({< GENDER={'F'},CO=>}SALARY))
/
AVG({< GENDER={'M'},CO=>}SALARY), CO, MUPC_CODE)),'##.#%')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
tresesco
MVP
MVP

@paulwalker 

You can try putting the set component in aggr() and outer avg() as well like:

NUM(AVG( {<CO>} AGGR( {<CO>}(AVG(..

MayilVahanan

Hi @paulwalker 

Try like below

NUM(AVG({<CO=>}AGGR((AVG({< GENDER={'M'},CO=>}SALARY)-AVG({< GENDER={'F'},CO=>}SALARY))
/
AVG({< GENDER={'M'},CO=>}SALARY), CO, MUPC_CODE)),'##.#%')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.