Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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

)