<?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: Last 7 days Revenue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105106#M894434</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;Is it possible for you to upload the qvw file which sows your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Aug 2016 17:03:36 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2016-08-14T17:03:36Z</dc:date>
    <item>
      <title>Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105102#M894430</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 want to show last 7 days revenue so i have implemented below variables and logic.&lt;/P&gt;&lt;P&gt;vMaxdate = Max(Date);&lt;/P&gt;&lt;P&gt;vLast7days = Max(Date,7);&lt;/P&gt;&lt;P&gt;Logice: &lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;count({&amp;lt;year,monthname,day,Date ={"&amp;gt;=$(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vLast7days&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;)&amp;lt;=$(vMaxDate)"}&amp;gt;} Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;I have filters like year, monthname and day etc. Logic is working as expected by year and monthname however if i select day filter its not showing data as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Note: I understood that logic is working for maxdate (without selections) whenever i select some date it would be maxdate by the time logic not working as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Can you help on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Nihhal.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105102#M894430</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105103#M894431</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;Change the expression to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Helvetica; color: #3d3d3d;"&gt;count({&amp;lt;year=,monthname=,day=,Date ={"&amp;gt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vLast7days&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: Helvetica; color: #3d3d3d;"&gt;)&amp;lt;=$(vMaxDate)"}&amp;gt;} Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Helvetica; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Helvetica; color: #3d3d3d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Helvetica; color: #3d3d3d;"&gt;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2016 14:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105103#M894431</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-13T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105104#M894432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;No change kaushik.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 16:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105104#M894432</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2016-08-14T16:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105105#M894433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think there is no change between our logics. Just our logic avoid year selection, monthname selection and day selection. If user select together it works. By the time last 7 days field shows wrong data. I hope you understand.&amp;nbsp;&lt;/SPAN&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Thanks,&lt;/P&gt;&lt;P class=""&gt;Nihhal.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 16:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105105#M894433</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2016-08-14T16:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105106#M894434</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;Is it possible for you to upload the qvw file which sows your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 17:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105106#M894434</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-14T17:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105107#M894435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik - Please find the sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 08:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105107#M894435</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2016-08-15T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105108#M894436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nihal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached solution.&lt;/P&gt;&lt;P&gt;I have changed your variables and expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shun !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 11:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105108#M894436</guid>
      <dc:creator>-SW-</dc:creator>
      <dc:date>2016-08-15T11:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105109#M894437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shun, thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you just added - (minus) to my variable right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 12:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105109#M894437</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2016-08-15T12:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105110#M894438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite... I changed the format of your variables, you can use the QV default date format (Which is numbers).&lt;/P&gt;&lt;P&gt;I also changed your dimension to vMaxDate, and your expression as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 13:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105110#M894438</guid>
      <dc:creator>-SW-</dc:creator>
      <dc:date>2016-08-15T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Last 7 days Revenue</title>
      <link>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105111#M894439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but I removed vMaxDate and added Date as dimension, it works as expected. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 13:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-7-days-Revenue/m-p/1105111#M894439</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2016-08-15T13:42:49Z</dc:date>
    </item>
  </channel>
</rss>

