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: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

ignore all selections apart from 1 field

Hi All,

I am trying to get some set analysis syntax to ignore all selections on fields apart from 1 specific field.

Can anyone help please?

I know using the '1' set modifier will ignore all current selections, but how do i tell it to include selections made on a specific field?

Sum{1<>}Sales

1 Solution

Accepted Solutions
Not applicable

Hi,

Try

Sum({1<YEAR = $::YEAR , MONTH=$::MONTH>} PRICE)

Rebeca

View solution in original post

19 Replies
hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

does anyone have any ideas on this please?

israrkhan
Specialist II
Specialist II

Hi,

Try Like Below:

for example you want to ignore selection in Month , Year, Quarter, but want to keep selection in Country.

write like this,

Sum({$<Month=, Year= , Quarter= >}Sale).

You saw, i did not mention country here in expression, so it mean, it will take selection in country field, but will not take selections made in , Month, Year and Quarters Fields,

put your dimension in set expression, which you dont want in selections. Like Month= , Mean Month = All..

Hope it help, if not ask please.....

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi, thanks. the only problem is my data model has 100's of fields. i need to ensure that they are ALL excluded.

Not applicable

Hi,

Try

Sum({1<Sales= $$:Sales>} Price)

Rebeca

Not applicable

This can help you understand a little better

Set Analysis Wizard for QlikView | qlikblog.at

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi Rebeca, thanks.

Which part of that would i list my fields in that i don't want to be excluded?

I dont want Year or Month to be excluded.

Thanks

jpapador
Partner - Specialist
Partner - Specialist

the '1' makes all fields ignored the Sales=$::Sales makes it so Sales will be recognized I believe

dvasseur
Partner - Creator III
Partner - Creator III

Something like this ?

Sum({1<[Your field]={$(=Concat('"' & [Your field] & "'", ', '))}>} ...)

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

i thought that syntax was for alternate states?