<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: show column condition based on current selection issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1828995#M68328</link>
    <description>&lt;P&gt;Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Your solution makes sense and is just what I was looking for.&lt;BR /&gt;Works like a charm, thank you!&lt;/P&gt;&lt;P&gt;Grtz, Tamarah&lt;/P&gt;</description>
    <pubDate>Tue, 17 Aug 2021 09:01:15 GMT</pubDate>
    <dc:creator>Tamarah</dc:creator>
    <dc:date>2021-08-17T09:01:15Z</dc:date>
    <item>
      <title>show column condition based on current selection issue</title>
      <link>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1826916#M68022</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm working on a ad-hoc table in a Qlik Sense app. Things are working pretty good but i'm strugling with the following and I hope somebody can help me out.&lt;/P&gt;&lt;P&gt;I have a dimension table i use to select the dimensions for my table:&lt;/P&gt;&lt;P&gt;Dimension:&lt;BR /&gt;DimID, Dimensie&lt;BR /&gt;1, Klant&lt;BR /&gt;2, Omzetgroep&lt;BR /&gt;3, Omzetgroep2&lt;/P&gt;&lt;P&gt;To show/hide a dimension i've added the following expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension = Klant&lt;BR /&gt;SubStringCount(GetFieldSelections(Dimensie,',','20'),'Klant')&lt;/P&gt;&lt;P&gt;Dimension = Omzetgroep&lt;BR /&gt;SubStringCount(GetFieldSelections(Dimensie,',','20'),'Omzetgroep')&lt;/P&gt;&lt;P&gt;Dimension = Omzetgroep2&lt;BR /&gt;SubStringCount(GetFieldSelections(Dimensie,',','20'),'Omzetgroep2')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the dimension = Klant this works like a charm but for the other two there is an issue. If I select dimension = Omzetgroep2 then both (Omzetgroep and Omzetgroep2) are shown in the table. I can't figure out how to fix this so Omzetgroep is only shown when actually selected in the dimension filter.&lt;BR /&gt;&lt;BR /&gt;Thank you again for letting me pick your brain for a minute &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 16:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1826916#M68022</guid>
      <dc:creator>Tamarah</dc:creator>
      <dc:date>2021-08-05T16:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: show column condition based on current selection issue</title>
      <link>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1827241#M68062</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think the issue is that&amp;nbsp;&lt;SPAN&gt;Omzetgroep is contained in&amp;nbsp;Omzetgroep2, hence your SubStringCount gets a match you didn't intend. You can try making it not match by adding something to the beginning and end of the string to search and being searched that is not in the string to force an exact match, so maybe;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SubStringCount('#'&amp;amp;GetFieldSelections(Dimensie,'#,#','20')&amp;amp;'#','#Omzetgroep#')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2021 09:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1827241#M68062</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-08-07T09:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: show column condition based on current selection issue</title>
      <link>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1827243#M68063</link>
      <description>&lt;P&gt;You shouldn't be using substring count to find a match.&lt;/P&gt;&lt;P&gt;1) I assume it's not an always one selected field, if so it's as easy as only([&lt;SPAN&gt;Dimensie]) = 'Omzetgroep2'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can do either of these for each column field, both should work but i'd choose the 2nd option:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=match('Omzetgroep2', $(=chr(39) &amp;amp; getfieldselections(Dimensie, chr(39) &amp;amp; ', ' &amp;amp; chr(39)) &amp;amp; chr(39)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=getselectedcount(&lt;SPAN&gt;Dimensie&lt;/SPAN&gt;)&amp;gt;0 and match(2, $(=concat(distinct &lt;SPAN&gt;DimID&lt;/SPAN&gt;, ', ')))&lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2021 10:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1827243#M68063</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-07T10:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: show column condition based on current selection issue</title>
      <link>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1828995#M68328</link>
      <description>&lt;P&gt;Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Your solution makes sense and is just what I was looking for.&lt;BR /&gt;Works like a charm, thank you!&lt;/P&gt;&lt;P&gt;Grtz, Tamarah&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 09:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1828995#M68328</guid>
      <dc:creator>Tamarah</dc:creator>
      <dc:date>2021-08-17T09:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: show column condition based on current selection issue</title>
      <link>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1828998#M68329</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for sharing your ideas!&lt;BR /&gt;I've accepted the sollution provided by Chris but I've tested your options and your first option works just fine! When trying the 2nd option I do get an error in the expression. Since I have 2 working options and no spare time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; I will leave it to this.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thnx again!&lt;BR /&gt;&lt;BR /&gt;Grtz, Tamarah&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 09:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-column-condition-based-on-current-selection-issue/m-p/1828998#M68329</guid>
      <dc:creator>Tamarah</dc:creator>
      <dc:date>2021-08-17T09:15:04Z</dc:date>
    </item>
  </channel>
</rss>

