Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
jonafor25
Contributor II
Contributor II

Modification of the dimension in the filter panel

I need Dimension1 to display only x, y, in the filter panel.

I already applied the (If) but it changes the name of the dimension and leaves it with the function and goes not allow to change it:

if(Dimension1=x or Dimension1=y) [medida]

 

Thanks.

 

Labels (1)
2 Replies
Chanty4u
MVP
MVP

try this in filter pane expression  

=if(match((Dimension1),'x','y'),Dimension1)

 

or you can create in script  :

if(match((Dimension1),'x','y'),Dimension1)  as NewDim 

 

and use NewDIm as your filter 

 

brunobertels
Master
Master

Hi 

Add this calculated dimension as a master dimension 

if(Dimension1=x or Dimension1=y, [medida] )

Or may be

aggr( if(Dimension1=x or Dimension1=y, [medida] ), medida) 

then give it a name : 

brunobertels_0-1648656179723.png