<?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 How to make columns in a table appear/disappear based on selection? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284092#M1201441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.... and I follow up Jonathan ......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Oct 2010 15:38:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-25T15:38:31Z</dc:date>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284087#M1201436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I have a table in Qlikview with several expressions in it. I want to make them appear when they are selected.&lt;/P&gt;&lt;P&gt;Under the presentation tab of my table properties I select the conditional option. If I write here: ListboxName= 'Columname'&lt;/P&gt;&lt;P&gt;then the column will appear on selection and disappear otherwise. The problem I have is when selecting multiple values this doesn't work anymore.&lt;/P&gt;&lt;P&gt;I think I should work with an if statement and maybe the getSelectedfields function but I have no idea how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who can help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 14:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284087#M1201436</guid>
      <dc:creator />
      <dc:date>2010-10-25T14:01:26Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284088#M1201437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens,&lt;/P&gt;&lt;P&gt;try this in the cond option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Len (getfieldselections ( Fieldname)) = 0&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hints:&lt;/P&gt;&lt;P&gt;Fieldname is the table-fieldname. Don't use an if-clause in the condition term!&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 14:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284088#M1201437</guid>
      <dc:creator />
      <dc:date>2010-10-25T14:41:30Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284089#M1201438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;Your statement works but I still have the issue that he doesn't show all the values I select.&lt;/P&gt;&lt;P&gt;I have a listbox with all my columnnames and I want the column to become visible in the table when I select it in the listbox.&lt;/P&gt;&lt;P&gt;I can do this for each value but not when I select several options in the listbox.&lt;/P&gt;&lt;P&gt;In your statement I compare whether there is a value selected but I want to check for specific values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 15:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284089#M1201438</guid>
      <dc:creator />
      <dc:date>2010-10-25T15:02:31Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284090#M1201439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;P&gt;Assuming that ListBoxName contains column names that you want to conditionally display, then perhaps something like:&lt;/P&gt;&lt;P style="font-style: italic"&gt;=Wildmatch(GetFieldSelections(ListboxName), '*ColumnName1*')&amp;gt;0&lt;/P&gt;&lt;P&gt;If you want the selection to depend on mu;tiple selections, then add more compare strings like this:&lt;/P&gt;&lt;P style="font-style: italic"&gt;=Wildmatch(GetFieldSelections(ListboxName), '*ColumnName1*', '*ColumnName2*')&amp;gt;0&lt;/P&gt;&lt;P&gt;Add as many column names as you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that if you could possibly select more than 6, then &lt;I&gt;GetFieldSelections&lt;/I&gt; needs to be written like:&lt;/P&gt;&lt;P&gt;&lt;I&gt;GetFieldSelections(ListBoxName, ',', 20)&lt;/I&gt;&lt;/P&gt;&lt;P&gt;just replace 20 with the maximum possible to likely number of column selections.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 15:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284090#M1201439</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-25T15:30:31Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284091#M1201440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, this is a little bit different than i thought before. But now I understand you better and I know what you want. What do you use for your listbox ? $Field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 15:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284091#M1201440</guid>
      <dc:creator />
      <dc:date>2010-10-25T15:34:54Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284092#M1201441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.... and I follow up Jonathan ......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 15:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284092#M1201441</guid>
      <dc:creator />
      <dc:date>2010-10-25T15:38:31Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284093#M1201442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My listbox contains the names of my columns.&lt;/P&gt;&lt;P&gt;When I select one or multiple values in my Listbox I want the selected columns to become visible in my table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 15:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284093#M1201442</guid>
      <dc:creator />
      <dc:date>2010-10-25T15:41:54Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284094#M1201443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;P&gt;Then my earlier post should work for you&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 15:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284094#M1201443</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-25T15:43:44Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284095#M1201444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Jonathan.&lt;/P&gt;&lt;P&gt;You solution also works but not when I select multiple values.&lt;/P&gt;&lt;P&gt;When I use:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Wildmatch(GetFieldSelections(ListboxName), 'Column1')&amp;gt;0 in the conditional field of my expression (in the presentation tab of the chart properties)&lt;/P&gt;&lt;P&gt;It shows Column1 in my table(graph) when I select it in my listbox&lt;/P&gt;&lt;P&gt;But when I select multiple values in my listbox I cannot see them in my table anymore.&lt;/P&gt;&lt;P&gt;I want that all the columns that I select appear in my table and this in a flexible way. So when I select only on than only that column should appear, but when I select multiple I want all of the selected to appear.&lt;/P&gt;&lt;P&gt;I am trying to reach this by using the conditional option in the presentation tab of my chart properties. Maybe this isn't the place to do this.&lt;/P&gt;&lt;P&gt;I think I need a condition for each column (expression) saying that if it is in the selected fields show it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that you have an idea of what I want to reach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 15:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284095#M1201444</guid>
      <dc:creator />
      <dc:date>2010-10-25T15:57:01Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284096#M1201445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;lets try to clear the situation:&lt;/P&gt;&lt;P&gt;I have two database-fields (Type and Amount) and a listbox containing $Field. Then I can use&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Wildmatch(GetFieldSelections($Field), '*Type*')&amp;gt;0 in the condition option of the column refering to Type&lt;/LI&gt;&lt;LI&gt;Wildmatch(GetFieldSelections($Field), '*Amount*')&amp;gt;0 in the condition option of the column for Amount&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This should help. Take care of the ( * ) !&lt;/P&gt;&lt;P&gt;To Jonathan:&lt;/P&gt;&lt;P&gt;I can't afford "GetFieldSelection(&lt;I&gt;ListBoxName&lt;/I&gt;); My function needs a Fieldname as Parameter ?!?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 16:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284096#M1201445</guid>
      <dc:creator />
      <dc:date>2010-10-25T16:32:22Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284097#M1201446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K&lt;/P&gt;&lt;P&gt;You are correct&lt;/P&gt;&lt;P&gt;I had "assumed" that ListBoxName is a field name. Looking at it now, it seems that was wrong.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 16:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284097#M1201446</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-25T16:38:58Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284098#M1201447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;P&gt;I think you need to post your QVW file (or at a sample of it). Then we can be sure to help you without misunderstanding each other.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 16:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284098#M1201447</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-25T16:40:38Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284099#M1201448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In attachment a sample of my qvw file. Hopefully this makes things more clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 17:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284099#M1201448</guid>
      <dc:creator />
      <dc:date>2010-10-25T17:19:44Z</dc:date>
    </item>
    <item>
      <title>How to make columns in a table appear/disappear based on selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284100#M1201449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;P&gt;Got it working on the Actual table. I only did four fields (&lt;I&gt;Actual, Actual % cont to Growth, Actual % of Total, Actual vs. PY (abs)&lt;/I&gt;) , I leave the rest for you.&lt;/P&gt;&lt;P&gt;Needed some special handling for Actual, as it is also contained in the other Measure values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;I&gt;&lt;BR /&gt;&lt;/I&gt;=If(Len(GetFieldSelections(Measure))&amp;gt;0, Wildmatch(GetFieldSelections(Measure, ',', 20), 'Actual', 'Actual,*', '*,Actual', '*,Actual,*')&amp;gt;0, 0)&lt;BR /&gt;=If(Len(GetFieldSelections(Measure))&amp;gt;0, Wildmatch(GetFieldSelections(Measure, ',', 20), '*Actual % of Total*')&amp;gt;0, 0)&lt;I&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Also needed to detect when no measure selected to suppress the display of all expressions.&lt;/P&gt;&lt;P style="font-style: italic"&gt;=If(Len(GetFieldSelections(Measure))&amp;gt;0, ..., 0)&lt;/P&gt;&lt;P&gt;If you want to display all expressions if no selection, change the last 0 to -1....&lt;/P&gt;&lt;P style="font-style: italic"&gt;=If(Len(GetFieldSelections(Measure))&amp;gt;0, ..., -1)&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 22:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-columns-in-a-table-appear-disappear-based-on/m-p/284100#M1201449</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-25T22:12:10Z</dc:date>
    </item>
  </channel>
</rss>

