<?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: variance in expression from date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557629#M456932</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;What would be the condition if data doesn't have data on (date - 1) day? Means before 2 jan directly on 31 Dec.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 06:57:15 GMT</pubDate>
    <dc:creator>Shubham_Deshmukh</dc:creator>
    <dc:date>2019-03-18T06:57:15Z</dc:date>
    <item>
      <title>variance in expression from date</title>
      <link>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557615#M456930</link>
      <description>&lt;P&gt;I have a date like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;AS_Date&amp;nbsp;&lt;/P&gt;&lt;P&gt;and from date i extract month , year and quarter like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;year(As_date) Year,&lt;/P&gt;&lt;P&gt;Month(As_date) MOnth,&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; ceil(month(As_Date)/3) as Quarter&lt;/P&gt;&lt;P&gt;and i have a expression like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Num(count(distinct{&amp;lt;Code={'34'}&amp;gt;}Amount))&lt;/P&gt;&lt;P&gt;so i want when user select suppose they select 2 jan then i want to get variance like suppose on 1 jan is 1000 and in 2 jan 2000 so want to get variance 1 jan - 2 jan e.g. 1000-2000 =1000&lt;/P&gt;&lt;P&gt;whatever the date is selected that date minus previous date&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for month suppose jan is selected than jan month - dec month like selected month and previous month .. same goes for year and quarter&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;so how i do that in expression&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 05:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557615#M456930</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-03-18T05:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: variance in expression from date</title>
      <link>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557620#M456931</link>
      <description>&lt;P&gt;You can try like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;count(distinct{&amp;lt;AS_Date={'$(=Date(Max(AS_Date)))'},Code={'34'}&amp;gt;}Amount)
-
count(distinct{&amp;lt;AS_Date={'$(=Date(Max(AS_Date)&lt;STRONG&gt;-1&lt;/STRONG&gt;))'},Code={'34'}&amp;gt;}Amount)&lt;/PRE&gt;&lt;P&gt;Similarly for month and year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 06:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557620#M456931</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-03-18T06:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: variance in expression from date</title>
      <link>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557629#M456932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;What would be the condition if data doesn't have data on (date - 1) day? Means before 2 jan directly on 31 Dec.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 06:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557629#M456932</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-18T06:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: variance in expression from date</title>
      <link>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557631#M456933</link>
      <description>is this possible to do that in 1 line like something this&lt;BR /&gt;count(distinct{&amp;lt;AS_Date={'$(=Date(Max(AS_Date) - "here minus thing" ))'},Code={'34'}&amp;gt;}Amount)&lt;BR /&gt;&lt;BR /&gt;is that possible</description>
      <pubDate>Mon, 18 Mar 2019 07:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557631#M456933</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-03-18T07:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: variance in expression from date</title>
      <link>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557632#M456934</link>
      <description>That way, you would not get your desired result.</description>
      <pubDate>Mon, 18 Mar 2019 07:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557632#M456934</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-03-18T07:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: variance in expression from date</title>
      <link>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557634#M456935</link>
      <description>&lt;P&gt;Hi Shubham,&lt;/P&gt;&lt;P&gt;In that case, you could probably put additional condition in set to filter in only non-zero amounts and get the 2nd max date , like:&lt;/P&gt;&lt;PRE&gt;count(distinct{&amp;lt;AS_Date={'$(=Date(Max(&lt;STRONG&gt;{&amp;lt;Amount={"&amp;gt;0"}&amp;gt;}&lt;/STRONG&gt;AS_Date&lt;STRONG&gt;,2&lt;/STRONG&gt;)))'}&lt;BR /&gt;,Code={'34'}&amp;gt;}Amount)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 07:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variance-in-expression-from-date/m-p/1557634#M456935</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-03-18T07:07:59Z</dc:date>
    </item>
  </channel>
</rss>

