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: 
paweln
Contributor III
Contributor III

How to remove values having letter x from the table?

Dear All,

I have simple tabel with no agregations, just dimensions. One column has ID numbers consisting of letters and numbers. I would like to have posibility of hiding (prefebly by pressing some button) all ID numbers having X and Y letters in them. 

How can i do it?

2 Solutions

Accepted Solutions
Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi there

You can use the following expression for your dimension:

=IF(vFieldXY,AGGR(Only({<ID = {"=Len(ID)=Len(PurgeChar(ID,'xy'))"}>} ID),ID),ID)

Then create a variable called a variable called vFieldXY and make the default value 0. You can then use the Variable Input extension (with the button option) with two buttons (with labels of your choice) with values 0 and 1. When the user pushes the button with the 1 value, then the IDs with x or y will be hidden.

You can spend some time in actually replacing the variable values with 'ID' and the aggregation function if you want to - the single and double quotes just make it tricky.

Hope this helps.

Regards,

Mauritz

View solution in original post

vunguyenq89
Creator III
Creator III

Hi,

You can use "Button for Navigation" object which is part of the default Qlik Dashboard bundle. Use action "Set variable value" of the button to toggle values 1/0 for a variable, then in the table use a calculated dimension with a condition check on the variable to decide whether to show/hide IDs containing X,Y.

test.png

Sample application is attached. Hope this helps!

BR,

Vu Nguyen

View solution in original post

2 Replies
Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi there

You can use the following expression for your dimension:

=IF(vFieldXY,AGGR(Only({<ID = {"=Len(ID)=Len(PurgeChar(ID,'xy'))"}>} ID),ID),ID)

Then create a variable called a variable called vFieldXY and make the default value 0. You can then use the Variable Input extension (with the button option) with two buttons (with labels of your choice) with values 0 and 1. When the user pushes the button with the 1 value, then the IDs with x or y will be hidden.

You can spend some time in actually replacing the variable values with 'ID' and the aggregation function if you want to - the single and double quotes just make it tricky.

Hope this helps.

Regards,

Mauritz

vunguyenq89
Creator III
Creator III

Hi,

You can use "Button for Navigation" object which is part of the default Qlik Dashboard bundle. Use action "Set variable value" of the button to toggle values 1/0 for a variable, then in the table use a calculated dimension with a condition check on the variable to decide whether to show/hide IDs containing X,Y.

test.png

Sample application is attached. Hope this helps!

BR,

Vu Nguyen