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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
cristian_av
Creator III
Creator III

Set Analysis to ACCEPT ONLY some Values

Hi

I have the following SET ANALYSIS in a Chart:

=Sum({$ <Razon_Social_Corregida=, Rut_Empresa_Corregido=> }CantidadServicios)

As you can see, this set to "Not Selected" the fields Razon_Social_Corregida y Rut_Empresa_Corregido

I need that my expression could ONLY be modified by Field1, and Field2. i.e. It is the opposite to what I actually have.

Is it possible??

I ask this because there are about 30 fields that I don't want to interfere in the expression, and if I do it in the way that I'm actually using, it will be a very long expression, that should have to change with every new field...

any Idea?

Thanks!!

1 Solution

Accepted Solutions
cristian_av
Creator III
Creator III
Author

Solved!!

This works like a charm!

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

Ignore all selections except some specific fields using Set Analysis

View solution in original post

2 Replies
jerem1234
Specialist II
Specialist II

Try:

=Sum({1<Razon_Social_Corregida=p(Razon_Social_Corregida), Rut_Empresa_Corregido=p(Rut_Empresa_Corregido)> }CantidadServicios)


Hope this helps!

cristian_av
Creator III
Creator III
Author

Solved!!

This works like a charm!

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

Ignore all selections except some specific fields using Set Analysis