<?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: Re: Previous day sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533577#M199277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/88778"&gt;Mayil+Vahanan Ramasamy&lt;/A&gt; for the reply. However, as i mentioned earlier, i am looking for a front end solution .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 08:16:22 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-08-27T08:16:22Z</dc:date>
    <item>
      <title>Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533575#M199275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks pretty easy, but even after exploiting the head for quite a long time i could not figure out. Sure that experts here would be able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="595"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Company&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="73"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="110"&gt;Sales for the day&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="348"&gt;PreviousDaySales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;27-08-2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;SUM(Sales)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Sum( Sales as on 25th)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;25-08-2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;SUM(Sales)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Sum( Sales as on 19th)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;19-08-2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;SUM(Sales)&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Sum( Sales as on the day sales took place before 19th)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have attached a qvw, please have a look. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I don't want to use BELOW() function, neither I want to achieve this in the script(AsOfDate approach i am aware of). Please suggest an expression, might be using set analysis with functions like , AGGR, RANK, FIRSTSORTEDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 07:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533575#M199275</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-27T07:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533576#M199276</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;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 08:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533576#M199276</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-27T08:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533577#M199277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/88778"&gt;Mayil+Vahanan Ramasamy&lt;/A&gt; for the reply. However, as i mentioned earlier, i am looking for a front end solution .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 08:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533577#M199277</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-27T08:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533578#M199278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its difficult process to achieve this. Can you able to say why you goes for front end solution, instead of backend or below function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 08:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533578#M199278</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-27T08:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533579#M199279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramasamy,&lt;/P&gt;&lt;P&gt;Very often I have been facing this requirement. This becomes very tough to change the existing underlaying data model which is running for couple of months/years now. And this type of requirement is very common if you have noticed that. That is why, i am looking for a front end solution. May be somebody has explored and found a solution. I tried a logic using &lt;STRONG&gt;RowNo(Total) &lt;/STRONG&gt;, but unfortunately rowno() does not work with FirstSortedValue(Please sombody prove me wrong).&lt;/P&gt;&lt;P&gt;i tried something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(Sum(Sales), -Date, RowNo(TOTAL)+1)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;// unfortunately rowno() here always returns 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 08:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533579#M199279</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-27T08:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533580#M199280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(below(Total Sales, 0, rowno(Total)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 11:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533580#M199280</guid>
      <dc:creator>kalyandg</dc:creator>
      <dc:date>2013-08-27T11:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533581#M199281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sundaram, thanks for your kind reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, it does not work either. You can try with the attached qvw. I suspect the total keyword does not work as expected. Moreover, I would really appreciate if somebody can suggest a solution without using below() function and script work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 11:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533581#M199281</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-27T11:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533582#M199282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to bring this thread on top for your attention. Please share your thoughts. Is it really not possible in the front end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 14:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533582#M199282</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-27T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533583#M199283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 19:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533583#M199283</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-27T19:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533584#M199284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you really want to do things the hard way... see attached example. Not recommended, but a nice exercise &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 07:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533584#M199284</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-04T07:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Previous day sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533585#M199285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot Gysbert ! It is a nice excercise and learning indeed for me. I will take a close look at it and come back. By the time, would request you to throw some light on - why " &lt;STRONG&gt;FirstSortedValue(Sum(Sales), -Date, RowNo(TOTAL)+1) "&lt;/STRONG&gt;&amp;nbsp; would not work. Had this Rowno() concept been worked, the solution could have been easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 08:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-day-sales/m-p/533585#M199285</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-04T08:20:14Z</dc:date>
    </item>
  </channel>
</rss>

