<?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/hide expressions depending on selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900622#M999552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! That's the reason the thread shows up in "New to QlikView" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;. Just never used it before, now everything works as expected, thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use now this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('$(vAllSelectedProject_Check)','*Berlin*') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '$(vAllSelectedProject_Check)'='ALL' &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 14:09:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-25T14:09:44Z</dc:date>
    <item>
      <title>show/hide expressions depending on selection</title>
      <link>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900619#M999549</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;&lt;/P&gt;&lt;P&gt;I am stuck in following thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I defined a function to check which values of my fields are selected: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vAllSelectedProject_Check&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '=GetFieldSelections(Field_01)'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I use this expression in a chart:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('$(vAllSelectedProject_Check)'='ALL',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;expenses&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/1000),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field_01&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vAllSelectedProject_Check)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;expenses&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/1000)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So this works awesome, if I select only one value, I see the sum of it. I select 3 values, all of them are accumulated &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;and if I select all values, I get the total sum. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But now I try to add more expressions ... so each expression shoud represent the sum of a value in my field. I am thinking about something like a reference. So for sure I would need to add as many expressions as fields I got. But I can live with that. The most important thing would be that I could show/hide expressions depending on the selections of my field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anyone an idea? Would be very happy about any replys!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Henrik&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 13:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900619#M999549</guid>
      <dc:creator />
      <dc:date>2015-06-25T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide expressions depending on selection</title>
      <link>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900620#M999550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to try separating the conditions and expressions by using the "Conditional" check box in your expression tab and put your condition there. It will perform better and be easier to manage I would think.&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90831_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 13:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900620#M999550</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-06-25T13:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide expressions depending on selection</title>
      <link>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900621#M999551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You say that this is working??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vAllSelectedProject_Check&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = '=GetFieldSelections(Field_01)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then I use this expression in a chart:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;('$(vAllSelectedProject_Check)'='ALL',&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;expenses&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;/1000),&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Field_01&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vAllSelectedProject_Check)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;expenses&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;/1000))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;So this works awesome, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;But this is only working because of the standard qlikview behavior. You might as well just have Sum(expenses/1000) as your expression. The if condition in your expression is always false, meaning that it will take the second expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 8pt; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 8pt; color: #800000;"&gt;Field_01&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vAllSelectedProject_Check)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 8pt; color: #800000;"&gt;expenses&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 8pt;"&gt;/1000)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;As &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vAllSelectedProject_Check) &lt;/EM&gt;&lt;/STRONG&gt;is not correctly formatted for in set analysis, i will ignore that meaning you might as well use&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Sum(expenses/1000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Qlikview will limit these results by selections in Field_01 by default, so what are you are trying to achieve?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 13:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900621#M999551</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-06-25T13:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide expressions depending on selection</title>
      <link>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900622#M999552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! That's the reason the thread shows up in "New to QlikView" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;. Just never used it before, now everything works as expected, thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use now this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('$(vAllSelectedProject_Check)','*Berlin*') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '$(vAllSelectedProject_Check)'='ALL' &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900622#M999552</guid>
      <dc:creator />
      <dc:date>2015-06-25T14:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide expressions depending on selection</title>
      <link>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900623#M999553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that helped. Its one of my favorite features they added.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900623#M999553</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-06-25T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide expressions depending on selection</title>
      <link>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900624#M999554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;A href="https://community.qlik.com/people/Stigchel"&gt;Stigchel&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(expenses/1000) wouldn't be enough in my case. The if condition is not always false! If I select all values of my field, the variable vAllSelectedProject_Check turns to "ALL". So it appears quite often ...&lt;/P&gt;&lt;P&gt;Just an example. My field contains the values "Berlin", "Hamburg", "Paris" and "London". If I select "Berlin" and "Hamburg" the variable vAllSelectedProject_Check = "Berlin, Hamburg" ... so I can use this in the set analysis. And if I select ALL fields, so "Berlin", "Hamburg", "Paris" and "London" the vAllSelectedProject_Check = "ALL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you see I need it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900624#M999554</guid>
      <dc:creator />
      <dc:date>2015-06-25T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide expressions depending on selection</title>
      <link>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900625#M999555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The if condition is only true if all values (and more than 6 (default) possible values exist) and is completely unnecessary as Sum(expenses/1000) will be restricted to the selected values in Field_01 as a default behavior of qlikview. You only need set analysis to either expand or limit the used data set. You don't need it if you just use the current selected data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-hide-expressions-depending-on-selection/m-p/900625#M999555</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-06-25T14:23:31Z</dc:date>
    </item>
  </channel>
</rss>

