Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
43918084
Creator II
Creator II

Show column if is not working

I would like to have a field to show in my pivot table ONLY if it is selected in an island table "Dim Selection"

my underlying load is 

Load

text( "Arr Lcl Num Ath") as ALN,

"BS impair",

FROM [lib://Loan/Tableau 2020 Sep Selective.xlsx]

(ooxml, embedded labels, table is data);

 

Then I have created the island table as below

Selections:

LOAD * INLINE [

Dim Selections
ALN
]

Then in the Data property where I have the Field [ALN], I put in the [Show Column If box] with below formula

   if(SubStringCount(GetFieldSelections([Dim Selections]),ALN)=1,1,0)

Unfortunately, when I select and deselect from the Filter pane, the ALN field never appears in my table.

Hope I can get some guidance to solve my problem.  Many thanks.

Capture.PNG

 

1 Solution

Accepted Solutions
agigliotti
MVP
MVP

Hi @43918084

There is a mistake in your expression:

Let's try using the below as your showing condition:

=GetFieldSelections([Dim Selections]) = 'ALN'

I hope it can helps.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

2 Replies
agigliotti
MVP
MVP

Hi @43918084

There is a mistake in your expression:

Let's try using the below as your showing condition:

=GetFieldSelections([Dim Selections]) = 'ALN'

I hope it can helps.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
43918084
Creator II
Creator II
Author

Thanks a million for your guidance.  It works now 😁