Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
elinamcastelletta
Partner - Contributor II
Partner - Contributor II

Show values not linked to a selection

Hi, I have 2 tables like below. 

SA
1x
1b
2c

 

AD
xx1
xx2
bb3
bb4
cx1
cx3
cx4

 

I created a dimension within a table. The idea is to show unique D values not linked to S.

1st case when no S selected, 2nd case for S selected:

=aggr(if(GetSelectedCount(S)=0,

              only(distinct{<D=E({<S={*}>})>}D),          -------> this works
              only(distinct{$<D=E(1{<S=P(S)>})>}D))    ---------> this doesn't work
    ,D)

 

How can I fix this?

Expected result:

         if I select  S=1 I want to see:

                                                              x3

                                                             x4

 

Thanks,

Labels (2)
2 Replies
sunny_talwar

@elinamcastelletta May be try this

=Aggr(
  If(GetSelectedCount(S) = 0,
    Only({$<D = E({<S={*}>})>} D),
    Only({$<D = E({<S=P(S)>}), S>}D)
  )
, D)
elinamcastelletta
Partner - Contributor II
Partner - Contributor II
Author

Hi, thanks but I doesn't work.