<?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: If and set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367236#M575368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Mats&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the selections are affecting/limiting the value of your field/variable _sys_flag_Dag possibly indirectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no reason that I am aware of the limits you from putting a set expression in an If statement. I do that frequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2012 12:13:05 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-05-25T12:13:05Z</dc:date>
    <item>
      <title>If and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367231#M575363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problems excluding selections when using if together with a set analysis like this &lt;/P&gt;&lt;P&gt;if(_sys_flag_Dag &amp;lt;&amp;gt; 'Igår',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({1&amp;lt;$(sFilterToday)&amp;gt;} [InqueriesCount]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({1&amp;lt;$(sFilterYD)&amp;gt;} [InqueriesCount])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the 1's that should include all data! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression works well if I don't do any selections but when I select something in the app only that selection displays in the graph (the 1's should prevent this). When I run the expressions one by one (removing the if statement) the selections does not affect the expression! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks! &lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 09:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367231#M575363</guid>
      <dc:creator />
      <dc:date>2012-05-24T09:59:16Z</dc:date>
    </item>
    <item>
      <title>If and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367232#M575364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the field you want to exclude? Fro instance, if you want ot exclude the field called "Date" then you should do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&amp;nbsp; sum({1&amp;lt;Date=,$(sFilterToday)&amp;gt;} [InqueriesCount]),&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 10:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367232#M575364</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-05-24T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: If and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367233#M575365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about something like this instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;sum(&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;if(_sys_flag_Dag &amp;lt;&amp;gt; 'Igår', '&lt;/SPAN&gt;{1&amp;lt;$(sFilterToday)&amp;gt;}', '&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;{1&amp;lt;$(sFilterYD)&amp;gt;}&lt;/SPAN&gt;') [InqueriesCount]))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to store the whole If() into a variable so it is always evaluated just once and not for each value of the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 10:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367233#M575365</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-05-24T10:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: If and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367234#M575366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even when I write {&amp;lt;Date=, etc it still does exclude my selections .. even if this worked it would not be a possible solution since I have too many fields in my application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 11:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367234#M575366</guid>
      <dc:creator />
      <dc:date>2012-05-24T11:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: If and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367235#M575367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been pondering this a bit and it seems like Qlikview is selecting the data for the if statement and thus overriding the 1 figure in the set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know if this is solvable and what I will do is to probably make two graphs on top of each other with one expression each and will then swap between these graphs instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks! &lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 12:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367235#M575367</guid>
      <dc:creator />
      <dc:date>2012-05-25T12:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: If and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367236#M575368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Mats&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the selections are affecting/limiting the value of your field/variable _sys_flag_Dag possibly indirectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no reason that I am aware of the limits you from putting a set expression in an If statement. I do that frequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 12:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-set-analysis/m-p/367236#M575368</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-25T12:13:05Z</dc:date>
    </item>
  </channel>
</rss>

