<?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 15 days data from max selection day. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878938#M306814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this in No. of Licenses expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;CDay=,CMonth=,CYear=,CDate={"&amp;gt;=$(=date(max(CDate)-14,'dd-MMM-yy'))&amp;lt;=$(=date(max(CDate),'dd-MMM-yy'))"}&amp;gt;} Aggr(if(CDate &amp;lt;=max(date(LicenseDeployDate)),MinNoOfLicense,MaxNoOfLicense), NavisionInstance, CDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 09:46:12 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-06-23T09:46:12Z</dc:date>
    <item>
      <title>Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878931#M306807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: times new roman,times;"&gt;Hello Friends,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: times new roman,times; font-size: 12pt;"&gt;I have a line chart object where I am representing last 15 days Max No. of User login. Now when I select a month, for example - June. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: times new roman,times; font-size: 12pt;"&gt;By default it is representing from 23 Jun to Previous 15 days record. Now If I select 22 June, Object representing one day data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Selection Day is 22 Jun&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: times new roman,times; font-size: 12pt;"&gt; - Then from 8th Jun till 22nd Jun. Suppose I select 10th Jun then from 26th May till 10th June data should to represent in line chart object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: times new roman,times; font-size: 12pt;"&gt;I need whatever day, I select it should represent last 15 days data from the selection of max day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: times new roman,times; font-size: 12pt;"&gt;For more ref. Please find the attached QV file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: times new roman,times;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878931#M306807</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2015-06-23T07:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878932#M306808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;attach is an example&lt;/P&gt;&lt;P&gt;this example uses set analysis to calculate the date range&lt;/P&gt;&lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 07:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878932#M306808</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-06-23T07:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878933#M306809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is good, But my requirement is like, Suppose I select 22 June then in Line graph object data should to represent till 22nd June not for 23 June. From 8th June to 22nd June.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select 21st June - then 7th June to 21st June.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878933#M306809</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2015-06-23T08:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878934#M306810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max({&amp;lt;CDay=,CMonth=,CYear=,CDate={"&amp;gt;=$(=date(max(CDate)-14,'dd-MMM-yy'))&amp;lt;=$(=date(max(CDate),'dd-MMM-yy'))"}&amp;gt;}Aggr(Sum({&amp;lt;CDay=,CMonth=,CYear=,CDate={"&amp;gt;=$(=date(max(CDate)-14,'dd-MMM-yy'))&amp;lt;=$(=date(max(CDate),'dd-MMM-yy'))"}&amp;gt;}NoOfUsers),Name,CaptureDtTime))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878934#M306810</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-23T08:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878935#M306811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you are right &lt;/P&gt;&lt;P&gt;forgot to add the end period argument&lt;/P&gt;&lt;P&gt;have a look at this version &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878935#M306811</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-06-23T08:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878936#M306812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for reply, Now it is ok for this this expression. But I am getting fail when I am adding one more expression on the same object. Where I am adding No. of License. There will be always one selected value on Instance (Name) field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till time it is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I am selecting a date, Last 15 days data is represent but for No. of license. it is not geeting the line. !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also for all instance there is correct value, But for Vietnam I want vice - versa output of no. of license. It will go from 70 to 30 not from 30 to 70.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more ref. Please find the attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878936#M306812</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2015-06-23T09:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878937#M306813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Liron.&lt;/P&gt;&lt;P&gt;Hi Liron,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for reply, Now it is ok for this this expression. But I am getting fail when I am adding one more expression on the same object. Where I am adding No. of License. There will be always one selected value on Instance (Name) field.&lt;/P&gt;&lt;P&gt;Till time it is ok.&lt;/P&gt;&lt;P&gt;Now when I am selecting a date, Last 15 days data is represent but for No. of license. it is not geeting the line. !&lt;/P&gt;&lt;P&gt;Also for all instance there is correct value, But for Vietnam I want vice - versa output of no. of license. It will go from 70 to 30 not from 30 to 70.&lt;/P&gt;&lt;P&gt;For more ref. Please find the attached qvw.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878937#M306813</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2015-06-23T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878938#M306814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this in No. of Licenses expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;CDay=,CMonth=,CYear=,CDate={"&amp;gt;=$(=date(max(CDate)-14,'dd-MMM-yy'))&amp;lt;=$(=date(max(CDate),'dd-MMM-yy'))"}&amp;gt;} Aggr(if(CDate &amp;lt;=max(date(LicenseDeployDate)),MinNoOfLicense,MaxNoOfLicense), NavisionInstance, CDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878938#M306814</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-23T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878939#M306815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure &lt;/P&gt;&lt;P&gt;this exactly what you meant &lt;/P&gt;&lt;P&gt;but have a look at this &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878939#M306815</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-06-23T09:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878940#M306816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. It is very very helpful for me. But I was just assuming suppose on the behalf of hard coding of 14 if we pass the variable and whatever we will put in input box, it will show according to inputbox number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But by default it will show 15 days data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the attached qvw.&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, 24 Jun 2015 05:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878940#M306816</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2015-06-24T05:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Last 15 days data from max selection day.</title>
      <link>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878941#M306817</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;In your expressions just replace 14 with vInputNumber like below&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CDay=,CMonth=,CYear=,CDate={"&amp;gt;=$(=date(max(CDate)-vInputNumber,'dd-MMM-yy')) &amp;lt;=$(=date(max(CDate),'dd-MMM-yy'))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(if(max({&amp;lt;CDay=,CMonth=,CYear=,CDate={"&amp;gt;=$(=date(max(CDate)-vInputNumber,'dd-MMM-yy'))"}&amp;gt;}CDate)&amp;lt;=&lt;/P&gt;&lt;P&gt;&amp;nbsp; max({&amp;lt;CDay=,CMonth=,CYear=&amp;gt;}LicenseDeployDate),max({1}MinNoOfLicense),max({1}MaxNoOfLicense)),NavisionInstance,CDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you got the answer close this thread by giving correct and helpful answers to the helpful posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-15-days-data-from-max-selection-day/m-p/878941#M306817</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-24T14:26:41Z</dc:date>
    </item>
  </channel>
</rss>

