<?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 One report contain two Different date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-report-contain-two-Different-date/m-p/1008439#M958541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears, Can any one help on this;&lt;/P&gt;&lt;P&gt;i am new in NPrinting and i build report contains too many KPIs for the current date and my manager ask me in the same report he need the same data&amp;nbsp; for date -1 , i use the below formula to get all data in my report (for the max date in the main filter for my report)&lt;/P&gt;&lt;P&gt;sum(aggr(sum(ITEM_CONSUMPTION) * ( ITEM_PURCHASE_PRICE * UNIT_EQUIVALENCE) ,%Cons_Item_Key))&lt;/P&gt;&lt;P&gt;how can i get data for -1 date , when i try to do the same formula by use set analysis by add the &lt;STRONG&gt;SHIFTDATE={'$(=Max( SHIFTDATE)-1)'} &lt;/STRONG&gt;it is not working,any idea pleas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2015 14:25:52 GMT</pubDate>
    <dc:creator>jood_ahmad</dc:creator>
    <dc:date>2015-11-02T14:25:52Z</dc:date>
    <item>
      <title>One report contain two Different date</title>
      <link>https://community.qlik.com/t5/QlikView/One-report-contain-two-Different-date/m-p/1008439#M958541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears, Can any one help on this;&lt;/P&gt;&lt;P&gt;i am new in NPrinting and i build report contains too many KPIs for the current date and my manager ask me in the same report he need the same data&amp;nbsp; for date -1 , i use the below formula to get all data in my report (for the max date in the main filter for my report)&lt;/P&gt;&lt;P&gt;sum(aggr(sum(ITEM_CONSUMPTION) * ( ITEM_PURCHASE_PRICE * UNIT_EQUIVALENCE) ,%Cons_Item_Key))&lt;/P&gt;&lt;P&gt;how can i get data for -1 date , when i try to do the same formula by use set analysis by add the &lt;STRONG&gt;SHIFTDATE={'$(=Max( SHIFTDATE)-1)'} &lt;/STRONG&gt;it is not working,any idea pleas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 14:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-report-contain-two-Different-date/m-p/1008439#M958541</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2015-11-02T14:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: One report contain two Different date</title>
      <link>https://community.qlik.com/t5/QlikView/One-report-contain-two-Different-date/m-p/1008440#M958542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe just format your date&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SHIFTDATE={'$(=Date(Max( SHIFTDATE)-1))'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assuming SHIFTDATE uses default date formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to apply the set analysis to the outer as well as the inner aggregation:&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;sum(&lt;STRONG&gt;{&amp;lt;SHIFTDATE={'$(=Date(Max( SHIFTDATE)-1))'}&amp;gt;}&lt;/STRONG&gt; aggr(sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;SHIFTDATE={'$(=Date(Max( SHIFTDATE)-1))'}&amp;gt;} &lt;/STRONG&gt;ITEM_CONSUMPTION) * ( ITEM_PURCHASE_PRICE * UNIT_EQUIVALENCE) ,%Cons_Item_Key))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 00:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-report-contain-two-Different-date/m-p/1008440#M958542</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-04T00:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: One report contain two Different date</title>
      <link>https://community.qlik.com/t5/QlikView/One-report-contain-two-Different-date/m-p/1008441#M958543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much swuehl,&lt;/P&gt;&lt;P&gt;i try it but it is not work it give me zero no data retrieve .&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 10:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-report-contain-two-Different-date/m-p/1008441#M958543</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2015-11-04T10:23:03Z</dc:date>
    </item>
  </channel>
</rss>

