<?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 Statement with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/2434203#M1225519</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/258928"&gt;@Sasja&lt;/a&gt;&amp;nbsp;And what is the specific challenge?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 11:09:54 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2024-03-25T11:09:54Z</dc:date>
    <item>
      <title>If Statement with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/423684#M157929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the following set analysis, but I am getting incorrect results. The first If statement should return 4 rows that do not meet that criteria. If I run the 1st if statement separately I do get the 4 rows I expect. But when I runs this whole expression everyone is coming out as true. Not sure what I have incorrect. Thank you. &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 _jivemacro_uid_13627603717483532" jivemacro_uid="_13627603717483532"&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;IF&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLG_PRIMARY_CARE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLG_ADMIT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthsDifference&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Months&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ISLAND_CAL_DT.Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLG_LAST_CONTACT_DT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1} &lt;BR /&gt;&amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DTAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;)&lt;BR /&gt;&amp;gt;= 4&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLG_PRIMARY_CARE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLG_ADMIT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthsDifference&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Months&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ISLAND_CAL_DT.Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLG_LAST_CONTACT_DT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1} &lt;BR /&gt;&amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HEPB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;)&lt;BR /&gt;&amp;gt;= 3,0,1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 16:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/423684#M157929</guid>
      <dc:creator>tchovanec</dc:creator>
      <dc:date>2013-03-08T16:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/2434198#M1225518</link>
      <description>&lt;P&gt;Sorry for my question, but have you figured out what the problem was yet?&lt;/P&gt;
&lt;P&gt;I am having a similar problem.&lt;/P&gt;
&lt;P&gt;I just have the feeling that an 'If' statement containing an aggregation does not go well together. Maybe someone here on this forum can clarify this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 10:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/2434198#M1225518</guid>
      <dc:creator>Sasja</dc:creator>
      <dc:date>2024-03-25T10:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/2434203#M1225519</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/258928"&gt;@Sasja&lt;/a&gt;&amp;nbsp;And what is the specific challenge?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 11:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/2434203#M1225519</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-03-25T11:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/2434222#M1225521</link>
      <description>&lt;P&gt;I'm not sure how to explain it, but I'll see if I can clarify the problem.&lt;/P&gt;
&lt;P&gt;We have a worksheet with a table containing values. These values ​​are determined by means of an 'If' statement in which it is checked whether an average value of a number of measurements is sufficient.&lt;/P&gt;
&lt;P&gt;This seems to work correctly.&lt;/P&gt;
&lt;P&gt;Now my colleague and I also have an almost identical 'If' statement with average calculation where we associate the value with a color for the background of the field in the table.&lt;/P&gt;
&lt;P&gt;This changes either the value we put in the field or the background color does not match the value.&lt;/P&gt;
&lt;P&gt;Even when I determine the background color in a completely different way (for example by 'If ( 1=1,..)' or 'If( 1=2, ..) ) the value displayed in the field also changes.&lt;/P&gt;
&lt;P&gt;How is that possible?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 11:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-with-Set-Analysis/m-p/2434222#M1225521</guid>
      <dc:creator>Sasja</dc:creator>
      <dc:date>2024-03-25T11:57:44Z</dc:date>
    </item>
  </channel>
</rss>

