<?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: set analysis according to user selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983394#M335664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add&lt;STRONG&gt; Sum(0)&lt;/STRONG&gt; with the existing formula this will populate the date with no values in the graph but if you do any selection this will not work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2015 13:47:27 GMT</pubDate>
    <dc:creator>punitpopli</dc:creator>
    <dc:date>2015-11-12T13:47:27Z</dc:date>
    <item>
      <title>set analysis according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983390#M335660</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 have a scenario where i calculate Sales trend using the current date and the previous date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i calculate the current and previous Sales using below expressions&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;Current_Sale&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({$&amp;lt;BUSS_DATE={"$(=DATE(MAX(BUSS_DATE)))"}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Previous_Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({$&amp;lt;BUSS_DATE={"$(=DATE({1}MAX(BUSS_DATE,2)))"}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;However lets say i am showing trend for a particular product and it has the value of sales for current date and immediate previous dates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Like for&amp;nbsp; eg. product A has sales value for 5thOct and 4thOct then i am able to see the sales trend correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;However if the Product&amp;nbsp; B has sales for 5thoct and for 3rdOct then i am not able to see the trend correctly. As there is date of 4th Oct but no sale value. its not showing any data for previous_Sales &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I want to understand that even if the previous date is not the immediate date then how should i calculate the Previous_Sales. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Ashish&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 12:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983390#M335660</guid>
      <dc:creator>ashishtams</dc:creator>
      <dc:date>2015-11-12T12:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983391#M335661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use set analysis {1} in the DATE() function, so I assume that's a typo and should be within MAX().&lt;/P&gt;&lt;P&gt;What if you just remove the {1} completely? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 12:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983391#M335661</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-12T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983392#M335662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes its a typo.&lt;/P&gt;&lt;P&gt;its within the MAX..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i remove the one completely then there is a problem. like&amp;nbsp; if any random date is selected from the available dates then i cannot calculate the previous date after the selection. so i need {1} there to show trend regardless of any date selection. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 12:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983392#M335662</guid>
      <dc:creator>ashishtams</dc:creator>
      <dc:date>2015-11-12T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983393#M335663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, understood. But I believe using {1} won't return the correct preceding date, if you are not selecting the max BUSS_DATE available in your record set. Assuming you are only making user selections on BUSS_DATE:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; =Sum({$&amp;lt;BUSS_DATE={"$(=DATE(MAX({&amp;lt;BUSS_DATE = {'&amp;lt;$(=Date(MAX(BUSS_DATE)))'}&amp;gt;} BUSS_DATE)))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 13:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983393#M335663</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-12T13:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983394#M335664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add&lt;STRONG&gt; Sum(0)&lt;/STRONG&gt; with the existing formula this will populate the date with no values in the graph but if you do any selection this will not work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 13:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983394#M335664</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2015-11-12T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983395#M335665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add to retrieve the last date with sales you can try with:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({$&amp;lt;BUSS_DATE={"$(=DATE(MAX({&amp;lt;BUSS_DATE = {'&amp;lt;$(=Date(MAX(BUSS_DATE)))'}&lt;STRONG&gt;, Sales={'*'}&lt;/STRONG&gt;&amp;gt;} BUSS_DATE)))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 14:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-according-to-user-selection/m-p/983395#M335665</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-12T14:05:09Z</dc:date>
    </item>
  </channel>
</rss>

