<?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 condition and Date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103830#M1292296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your set analysis syntax needs to be corrected. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;Date={&lt;STRONG&gt;"&lt;/STRONG&gt;&amp;gt;=$(vYTDStartDate)&amp;lt;=$(vYTDEndDate)&lt;STRONG&gt;"&lt;/STRONG&gt;}, Country= {'Australia'}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;, Actual_Cost)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If this doesn't work, try to share a sample app to look at.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2018 06:52:02 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-10-15T06:52:02Z</dc:date>
    <item>
      <title>If condition and Date range</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103827#M1292290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a small question but not sure how to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume my objective is to select the Actual Cost for a selected time period and for a selected country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the below expression but it does not give me the desired output,&lt;/P&gt;&lt;P&gt;Sum(If({&amp;lt;Date={'&amp;gt;=$(vYTDStartDate)&amp;lt;=$(vYTDEndDate)'}&amp;gt;} AND Country= 'Australia', Actual_Cost))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vYTDStartDate is 1/07/2018 and &lt;SPAN style="font-size: 13.3333px;"&gt;vYTDEndDate is 30/09/2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I think the issue is with the way I specify the date range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Could someone help me in this regards?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103827#M1292290</guid>
      <dc:creator>andymanu</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: If condition and Date range</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103828#M1292291</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;Assume i got a working answer the above posted question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead using an IF statement, I applied a condition to the dimension (Country = Australia) and just wrote the expression including only the date range as below,&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={'&amp;gt;=$(vYTDStartDate)&amp;lt;=$(vYTDEndDate)'}&amp;gt;} Actual_Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which seems working. However, I got an unexpected figure for the Actual_Cost for the month June 2019 (which is not yet reached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have a look and update the discussion accordingly. Appreciate your feedback too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2018 06:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103828#M1292291</guid>
      <dc:creator>andymanu</dc:creator>
      <dc:date>2018-10-15T06:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: If condition and Date range</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103829#M1292294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;Date={'&amp;gt;=$(vYTDStartDate)&amp;lt;=$(vYTDEndDate)'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Country= {'Australia'}&lt;/SPAN&gt;&amp;gt;} Actual_Cost)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2018 06:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103829#M1292294</guid>
      <dc:creator>arvind1494</dc:creator>
      <dc:date>2018-10-15T06:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: If condition and Date range</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103830#M1292296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your set analysis syntax needs to be corrected. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;Date={&lt;STRONG&gt;"&lt;/STRONG&gt;&amp;gt;=$(vYTDStartDate)&amp;lt;=$(vYTDEndDate)&lt;STRONG&gt;"&lt;/STRONG&gt;}, Country= {'Australia'}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;, Actual_Cost)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If this doesn't work, try to share a sample app to look at.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2018 06:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103830#M1292296</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-10-15T06:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: If condition and Date range</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103831#M1292299</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;BR /&gt;Sorry, I have done a mistake and after unticking the "Include Null Values" box under the Dimensions tab, I was able to remove the unwanted figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2018 06:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-and-Date-range/m-p/103831#M1292299</guid>
      <dc:creator>andymanu</dc:creator>
      <dc:date>2018-10-15T06:54:32Z</dc:date>
    </item>
  </channel>
</rss>

