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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
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
Partner - Champion
Partner - Champion

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

View solution in original post

2 Replies
agigliotti
Partner - Champion
Partner - Champion

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

43918084
Creator II
Creator II
Author

Thanks a million for your guidance.  It works now 😁