<?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: Date range using variables in if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1546447#M439898</link>
    <description>&lt;PRE&gt;=if($(Var_Metric_View )= 1  and Month3 &amp;gt;  $(vMonth_Current) and Month3 &amp;lt;=$(vEndDateFY19) ,

sum(Headcount),


if( $(Var_Metric_View)=2  and Month3 &amp;gt; $(vMonth_Current) and  Month3  &amp;lt;=$(vEndDateFY19),

Sum([Total FTE])
))&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Feb 2019 15:34:36 GMT</pubDate>
    <dc:creator>pradosh_thakur</dc:creator>
    <dc:date>2019-02-19T15:34:36Z</dc:date>
    <item>
      <title>Date range using variables in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1546436#M439895</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use if statements to sum two different fields. My current expression is as below:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if((Var_Metric_View=1) and (Month3='&amp;gt;$(vMonth_Current)&amp;lt;=$(vEndDateFY19))',&lt;/P&gt;&lt;P&gt;sum(Headcount),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if((Var_Metric_View=2) and (Month3='&amp;gt;$(vMonth_Current)&amp;lt;=$(vEndDateFY19))',&lt;/P&gt;&lt;P&gt;Sum([Total FTE])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to achieve is if Var_Metric_View is 1 and the date field 'Month3' is between two dates, which are stored as variables, then sum headcount&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;if Var_Metric_View is 2 and the date field is between the same two dates then sum FTE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help A.S.A.P. would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 15:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1546436#M439895</guid>
      <dc:creator>surface3</dc:creator>
      <dc:date>2019-02-19T15:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date range using variables in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1546447#M439898</link>
      <description>&lt;PRE&gt;=if($(Var_Metric_View )= 1  and Month3 &amp;gt;  $(vMonth_Current) and Month3 &amp;lt;=$(vEndDateFY19) ,

sum(Headcount),


if( $(Var_Metric_View)=2  and Month3 &amp;gt; $(vMonth_Current) and  Month3  &amp;lt;=$(vEndDateFY19),

Sum([Total FTE])
))&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Feb 2019 15:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1546447#M439898</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-19T15:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date range using variables in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1547476#M439979</link>
      <description>&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 12:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1547476#M439979</guid>
      <dc:creator>surface3</dc:creator>
      <dc:date>2019-02-21T12:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date range using variables in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1547497#M439983</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/62577"&gt;@surface3&lt;/a&gt;&amp;nbsp; if your query is answered please close the thread else let us know.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 12:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-using-variables-in-if-statement/m-p/1547497#M439983</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-21T12:45:10Z</dc:date>
    </item>
  </channel>
</rss>

