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: 
maddysalunke
Contributor II
Contributor II

Remove one value from dimension

Hi All,

I am creating a table where I need to show 4 values from a field if nothing is selected , and 5 values if a filter is selected.

Ex:

Categories (Direct , Indirect , Passive , Active , ALL) -- If a filter "Grouping " is selected

Categories (Direct , Indirect , Active , ALL) -- If no value from  filter "Grouping " is selected

TIA

Labels (6)
1 Reply
Chanty4u
MVP
MVP

Try this 

=aggr(if(GetSelectedCount(Grouping) > 0, 

        {$<Categories = {"Direct", "Indirect", "Passive", "Active", "ALL"}>},

        {$<Categories = {"Direct", "Indirect", "Active", "ALL"}>}

    ),

    Categories

)