<?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 Show/Hide columns depending on choice in listbox in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-Hide-columns-depending-on-choice-in-listbox/m-p/1819337#M67169</link>
    <description>&lt;P&gt;In my application i used about 40 measures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in one pivot table i would like to offer the user of the application to show each measure for each occuation. Either one measure or for instace three measure .i .e&lt;/P&gt;&lt;P&gt;I have created a listbox/simple selection box, based on a table that hold the name of the measures.&lt;/P&gt;&lt;P&gt;Name of measure and ID_of_name!&lt;/P&gt;&lt;P&gt;Each row is represented as the name of the measures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would like to use the hide/show function on the the pivot table on each measure.&lt;/P&gt;&lt;P&gt;So for instance i tried theese function but it doesn´t work completly. The result has to be that if i choose id 3 it show id 3, and if i choose 4, 8 and 10 it should only show these.&lt;/P&gt;&lt;P&gt;The function i tried on each measures show/hide in properties is the following&lt;/P&gt;&lt;P&gt;=SubStringCount('|' &amp;amp; GetFieldSelections(ID_of_name, '|') &amp;amp; '|', '2') &amp;gt; 0&lt;BR /&gt;SubStringCount(ID_of_name,2)&lt;BR /&gt;=if( ID_of_name&amp;lt;&amp;gt;'2',0,SubStringCount(Concat(ID_of_name, '|'), '2'))&lt;/P&gt;&lt;P&gt;Anyone have any suggestion on how to defined the show/hide?&lt;/P&gt;&lt;P&gt;It has to be a function that always show one or moore depending on which measure name you use.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jul 2021 11:00:37 GMT</pubDate>
    <dc:creator>richards</dc:creator>
    <dc:date>2021-07-02T11:00:37Z</dc:date>
    <item>
      <title>Show/Hide columns depending on choice in listbox</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Hide-columns-depending-on-choice-in-listbox/m-p/1819337#M67169</link>
      <description>&lt;P&gt;In my application i used about 40 measures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in one pivot table i would like to offer the user of the application to show each measure for each occuation. Either one measure or for instace three measure .i .e&lt;/P&gt;&lt;P&gt;I have created a listbox/simple selection box, based on a table that hold the name of the measures.&lt;/P&gt;&lt;P&gt;Name of measure and ID_of_name!&lt;/P&gt;&lt;P&gt;Each row is represented as the name of the measures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would like to use the hide/show function on the the pivot table on each measure.&lt;/P&gt;&lt;P&gt;So for instance i tried theese function but it doesn´t work completly. The result has to be that if i choose id 3 it show id 3, and if i choose 4, 8 and 10 it should only show these.&lt;/P&gt;&lt;P&gt;The function i tried on each measures show/hide in properties is the following&lt;/P&gt;&lt;P&gt;=SubStringCount('|' &amp;amp; GetFieldSelections(ID_of_name, '|') &amp;amp; '|', '2') &amp;gt; 0&lt;BR /&gt;SubStringCount(ID_of_name,2)&lt;BR /&gt;=if( ID_of_name&amp;lt;&amp;gt;'2',0,SubStringCount(Concat(ID_of_name, '|'), '2'))&lt;/P&gt;&lt;P&gt;Anyone have any suggestion on how to defined the show/hide?&lt;/P&gt;&lt;P&gt;It has to be a function that always show one or moore depending on which measure name you use.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 11:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Hide-columns-depending-on-choice-in-listbox/m-p/1819337#M67169</guid>
      <dc:creator>richards</dc:creator>
      <dc:date>2021-07-02T11:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide columns depending on choice in listbox</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Hide-columns-depending-on-choice-in-listbox/m-p/1819354#M67171</link>
      <description>&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;You can show/hide coluimns using variables in the "Show column if" property.&lt;/P&gt;&lt;P&gt;Inser the desired columns in the table, create the variables and buttons to change the values of those variables. Then you assign in the "Show column if" space in the table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Variable_qlik_table.png" style="width: 286px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57878iBC65FD1FAD0F1D04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Variable_qlik_table.png" alt="Variable_qlik_table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 12:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Hide-columns-depending-on-choice-in-listbox/m-p/1819354#M67171</guid>
      <dc:creator>Gui_Approbato</dc:creator>
      <dc:date>2021-07-02T12:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide columns depending on choice in listbox</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Hide-columns-depending-on-choice-in-listbox/m-p/1828971#M68324</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Thanks for the reply. It gaved me some ideas on how to solve the problem.&lt;/P&gt;&lt;P&gt;My solution was the following.&lt;/P&gt;&lt;P&gt;If you create your own island of name with for instance inline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the parameterns of MEASURE and MEASURE_ID&lt;/P&gt;&lt;P&gt;Then in the pivot I created the explicit function of&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;if(IsNull(GetFieldSelections(MEASURE)),0, SubStringCount(Concat(MEASURE, '|'), 'BUDGET')) in the show/hide.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I.e. MEASURE as parameter for the static measure of budget, is only shown if BUDGET is checked in the box.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This could also work with MEASURE_ID if i change the "BUDGET" to for instance 1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Aug 2021 07:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Hide-columns-depending-on-choice-in-listbox/m-p/1828971#M68324</guid>
      <dc:creator>richards</dc:creator>
      <dc:date>2021-08-17T07:14:39Z</dc:date>
    </item>
  </channel>
</rss>

