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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
elinamcastelletta
Partner - Contributor II
Partner - Contributor II

Show missing values

Hello,

I need to get the values from D which are not assigned to a field in S:

SAD
1xx1
1xx2
1bb3
2bb4
2xx5
 xx6
 xx7

 

Example:

- No S selected. Result --> x6, x7 -Done: if( isnull(S),D)

-S=1 selected. Result -->b4,x5,x6,x7  - How do I show this result?

-S=2 selected. Result --> x1,x2,b3,x6,x7 - How do I show this result?

 
 
12 Replies
elinamcastelletta
Partner - Contributor II
Partner - Contributor II
Author

Thanks, but it also doesn't work. I tried with =getfieldselections before too, but didn't get correct results in Qlik Sense.

Kushal_Chawda

@elinamcastelletta  try below then

=if(GetSelectedCount(S)=0,
only({<D=E({<S={"*"}>})>}D),
Only({<S={"*"}-{"$(=concat(distinct S,','))"}>+<S,D=E({<S={"*"}>})>}D))

 

elinamcastelletta
Partner - Contributor II
Partner - Contributor II
Author

Hi Kush,

It is not working either. It gives back all the values, not the missing ones.

 

Thanks