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: 
eleni_theodorid
Partner - Creator
Partner - Creator

Ignore all except some fields Set Analysis

Hi All,

I need help with a Set Analysis. I want to calculate Sales ignoring all the selected values in all fields except of 3 fields.

I have a lot of fields to ignore and it's really meaningless to ignore them one by one in the Set Analysis. I think that I need something like that

sum({1<Field1={"$(=getfieldselections(Field1))"}, Field2={"$(=getfieldselections(Field2))"}, Field3={"$(=getfieldselections(Field3))"}>} Sales)

but it doesn't work if there are no selections in all my 3 fields (and I want it to work like qlikview, at the clear state to caught all the values, not none of them). Any ideas?

Thanks in advance,

Helen

1 Solution

Accepted Solutions
Not applicable

Hi Helen,

You can add this in the set analysis part of your expression:

$(=Concat({1<$Field -= {'Field1','Field2'}>} distinct '[' & $Field & ']=',','))

This will ignore all fields except Field1 and Field2 (add as many as you want).

Check this out too:

http://community.qlik.com/docs/DOC-1334

Hope this helps.

View solution in original post

2 Replies
Not applicable

Hi Helen,

You can add this in the set analysis part of your expression:

$(=Concat({1<$Field -= {'Field1','Field2'}>} distinct '[' & $Field & ']=',','))

This will ignore all fields except Field1 and Field2 (add as many as you want).

Check this out too:

http://community.qlik.com/docs/DOC-1334

Hope this helps.

eleni_theodorid
Partner - Creator
Partner - Creator
Author

Hi Jean-Pierre,

You save my day!

I couldn't found this discussion while i was looking for this! It works for me perfectly.

Thank you very much!