<?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: Conditional Show Columns with Multiple Selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538046#M692026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cheers G - works a treat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're a fountain of knowledge mate &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 15:03:07 GMT</pubDate>
    <dc:creator>wonkymeister</dc:creator>
    <dc:date>2013-09-18T15:03:07Z</dc:date>
    <item>
      <title>Conditional Show Columns with Multiple Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538041#M692021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a straight table with too many columns! so, I've decided to implement conditions on each column (which are expressions) which will determine whether each column is displayed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to do this i have created an inline load such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColumnSwitch:&lt;/P&gt;&lt;P&gt;Add Load * Inline&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColumnName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ethnicity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Domicile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these values then sit as a selection on the dashboard - and when the user selects a value which meets the selection the column displays in the table - easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (ColumnName = 'Age',1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the tricky part. the user can select more than one value from the selection box - so i need to test a string of values which could &amp;gt; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how do a test for any given value in the selections? ie GetFieldSelections(ColumnSwitch.ColumnName) if there's only one value then its fine - but if there's more than one using a simple ColumnName = 'Age' doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advanced&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538041#M692021</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2013-09-18T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show Columns with Multiple Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538042#M692022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend you to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substringcount(Concat(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ColumnName&lt;/SPAN&gt;, '|'),'Age')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll have to change "Age" for each column/expression, and this way you can enable multiple columns when multiple selections are made in the ColumnName field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538042#M692022</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2013-09-18T14:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show Columns with Multiple Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538043#M692023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use substringcount for example, or wildmatch. For example If(substringcount(concat( '@' &amp;amp; ColumnName &amp;amp; '@'),'@Age@'), 1,0). The @'s are to reduce false positives in case another value in your field also contains the same substring.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538043#M692023</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-18T14:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show Columns with Multiple Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538044#M692024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G, that works,but, all the columns are displaying by default?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i've applied the conditions to each expression, and with nothing selected the full table is displayed by default. its only when something is selected that the table changes to only display whats selected. i need the base table to have no columns unless something is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry - i'm a wee bit confused.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538044#M692024</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2013-09-18T14:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show Columns with Multiple Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538045#M692025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, you can add a condition to it: if(getselectedcount(ColumnName) and substringcount(... etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538045#M692025</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-18T14:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show Columns with Multiple Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538046#M692026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cheers G - works a treat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're a fountain of knowledge mate &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 15:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538046#M692026</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2013-09-18T15:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show Columns with Multiple Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538047#M692027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;would you be able to help me with this? I am not familiar with the formulas you mention but they may be the solution to my current issue. I have some columns I want to display based on a list box with multiple fields. if the users checks one, then I want to show the column, if the users checks 2 or more, then I want to show the number of columns the user wants to see. if there is no selection, then no columns should show.&lt;/P&gt;&lt;P&gt;I don't know how to combine the formula you mention, can you please give me the complete formula? I can replace with real column names and fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Hugo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 16:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-Columns-with-Multiple-Selections/m-p/538047#M692027</guid>
      <dc:creator />
      <dc:date>2014-10-22T16:01:55Z</dc:date>
    </item>
  </channel>
</rss>

