<?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 Then Else statement .. impact with line chart and Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749271#M506190</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47183"&gt;@steeramp&lt;/a&gt;&amp;nbsp; If condition tries to evaluate the expression row by row which could override the set expressions and generates inaccurate results. Whereas if you use getfieldselections it just looks at the&amp;nbsp; selection made and evaluates the expression as whole considering selection you made.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2020 16:28:21 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-10-02T16:28:21Z</dc:date>
    <item>
      <title>IF Then Else statement .. impact with line chart and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749261#M506187</link>
      <description>&lt;P&gt;I have my filtre :&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;TypeCA='Prestations saisies', Annee=2020 and Month= Mai&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I would like change the Measure for every value of TYPECA and to show the timeline max(DATE ) -11 Months --&amp;gt; to Max(DateSelected)&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example : for&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;TypeCA='Prestations saisies'&lt;/STRONG&gt;&lt;/EM&gt; I want you use this expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(Sum({1&amp;lt;AnnulationDejaPayee={0}, Date={"&amp;gt;=$(vDate_11)&amp;lt;=$(vMaxDate)"}, Annee= ,TypeCA=, Mois=&amp;gt;} Prest_Montant ) / Count(Distinct {1&amp;lt; Date={"&amp;gt;=$(vDate_11)&amp;lt;=$(vMaxDate)"}, Annee= ,TypeCA=,Mois=&amp;gt;} [IDAgentSoin]) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;.. and without using the IF Statement , I have this perfect LINE :&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;(cool)&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steeramp_0-1601654224650.png" style="width: 910px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41658i7598E69523F81333/image-dimensions/910x410?v=v2" width="910" height="410" role="button" title="steeramp_0-1601654224650.png" alt="steeramp_0-1601654224650.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;but..... &lt;STRONG&gt;&lt;U&gt;with the same filters&lt;/U&gt;&lt;/STRONG&gt; ,&amp;nbsp; &lt;U&gt;&lt;STRONG&gt;same SET ANALYSIS ,&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp; if I use the&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt; IF THEN ELSE&lt;/STRONG&gt; &lt;/EM&gt;&lt;/U&gt;before the set analysis :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;if(TypeCA='Prestations saisies',&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;(Sum({1&amp;lt;AnnulationDejaPayee={0}, Date={"&amp;gt;=$(vDate_11)&amp;lt;=$(vMaxDate)"}, Annee= ,TypeCA=, Mois=&amp;gt;} Prest_Montant ) / Count(Distinct {1&amp;lt; Date={"&amp;gt;=$(vDate_11)&amp;lt;=$(vMaxDate)"}, Annee= ,TypeCA=,Mois=&amp;gt;} [IDAgentSoin]) )&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have this result:&lt;U&gt;&lt;STRONG&gt; only the value for the Mois=Mai is showed&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steeramp_0-1601655223899.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41660i486C789FD1A3BEA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steeramp_0-1601655223899.png" alt="steeramp_0-1601655223899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why ?? How the IF THEN ELSE has an impact on my SET ANALYSIS??&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 16:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749261#M506187</guid>
      <dc:creator>steeramp</dc:creator>
      <dc:date>2020-10-02T16:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF Then Else statement .. impact with line chart and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749266#M506188</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47183"&gt;@steeramp&lt;/a&gt;&amp;nbsp; try with getfieldselections&lt;/P&gt;&lt;P&gt;if(getfieldselections(TypeCA)='Prestations saisies'&amp;nbsp;, YourExpression, OtherExpression)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 16:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749266#M506188</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-02T16:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: IF Then Else statement .. impact with line chart and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749269#M506189</link>
      <description>&lt;P&gt;You are the best one !! Can you explain the differences?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 16:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749269#M506189</guid>
      <dc:creator>steeramp</dc:creator>
      <dc:date>2020-10-02T16:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: IF Then Else statement .. impact with line chart and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749271#M506190</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47183"&gt;@steeramp&lt;/a&gt;&amp;nbsp; If condition tries to evaluate the expression row by row which could override the set expressions and generates inaccurate results. Whereas if you use getfieldselections it just looks at the&amp;nbsp; selection made and evaluates the expression as whole considering selection you made.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 16:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749271#M506190</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-02T16:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: IF Then Else statement .. impact with line chart and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749274#M506191</link>
      <description>&lt;P&gt;Great !&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 16:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Then-Else-statement-impact-with-line-chart-and-Set-analysis/m-p/1749274#M506191</guid>
      <dc:creator>steeramp</dc:creator>
      <dc:date>2020-10-02T16:39:02Z</dc:date>
    </item>
  </channel>
</rss>

