Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Cobran53
Contributor II
Contributor II

How to show and hide columns from a straight table with a button press?

I have a straight table, with columns and hidden columns. I'd like to show one of the hidden columns when the button is pressed. I tried the "Show column if" input, but it's only to allow the user to add a column on the right side or not. Any way that's possible? I'd rather not switch to just a table, even if i know that's possible there.

Labels (1)
  • SaaS

1 Solution

Accepted Solutions
DGO
Contributor III
Contributor III

Have you tried using a variable?

1. Create a variable - vShowColumn, Value: 0

2. Add a button - Action: set variable value, Variable: vShowColumn, Value: =if(vShowColumn= 0,1,0)

3. In the straight table column 'Show column if': vShowColumn = 1

Clicking the button will toggle the field to show/hide.

View solution in original post

1 Reply
DGO
Contributor III
Contributor III

Have you tried using a variable?

1. Create a variable - vShowColumn, Value: 0

2. Add a button - Action: set variable value, Variable: vShowColumn, Value: =if(vShowColumn= 0,1,0)

3. In the straight table column 'Show column if': vShowColumn = 1

Clicking the button will toggle the field to show/hide.