<?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: Show previous dates data in same row as date selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457914#M1161576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the below to populate the table - Only one date can be selected by the user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;//sum({&amp;lt;DateVal={"=$(=max({&amp;lt;DateVal={'&amp;lt;$(=max(DateVal))'}&amp;gt;} DateVal))"}&amp;gt;} SalesRetailGross])&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//sum({&amp;lt;DateText={"=$(=max({&amp;lt;DateText={'&amp;lt;$(=max(DateText))'}&amp;gt;} DateText))"}&amp;gt;} SalesRetailGross])&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=max({&amp;lt;DateId={'&amp;lt;$(=max(DateId))'}&amp;gt;} DateId))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesRetailGross]) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TH bgcolor="#f5f5f5" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DateVal&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH bgcolor="#f5f5f5" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DateText&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Sales2012-09-19&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Previous Date&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;19/09/2012 00:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2012-09-19&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;£1145448.02&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Not sure how to attached the QV to this&amp;nbsp; discussion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2012 09:30:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-21T09:30:23Z</dc:date>
    <item>
      <title>Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457908#M1161570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; I am trying to creat a table with one summary row;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date, sales figure, Previous dates sale figure, Variance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble finding the previous dates sale figure to the one selected by the user on the calender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice greatly appreciated as I am new to Qlkiview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 16:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457908#M1161570</guid>
      <dc:creator />
      <dc:date>2012-12-20T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457909#M1161571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably use the above() function to get the previous dates sales figure: above(sales figure)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 16:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457909#M1161571</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-20T16:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457910#M1161572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz I need your help&amp;nbsp; bcz i did not get any solution for this plz click on following links:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/thread/68878?tstart=30" title="http://community.qlik.com/thread/68878?tstart=30"&gt;http://community.qlik.com/thread/68878?tstart=30&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 16:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457910#M1161572</guid>
      <dc:creator>vikasgupta</dc:creator>
      <dc:date>2012-12-20T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457911#M1161573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; Thanks for your reply unfortunately this doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calender allows just one date selected therefore only data for&amp;nbsp; the date selected is brought back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 08:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457911#M1161573</guid>
      <dc:creator />
      <dc:date>2012-12-21T08:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457912#M1161574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this then:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date={"=$(=max({&amp;lt;Date={'&amp;lt;$(=max(Date))'}&amp;gt;} Date))"}&amp;gt;} [sales figure])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 09:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457912#M1161574</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-21T09:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457913#M1161575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; Thats not working either - though looks like too many brackets.&lt;/P&gt;&lt;P&gt; I have tried it with all different date formats too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ta Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 09:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457913#M1161575</guid>
      <dc:creator />
      <dc:date>2012-12-21T09:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457914#M1161576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the below to populate the table - Only one date can be selected by the user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;//sum({&amp;lt;DateVal={"=$(=max({&amp;lt;DateVal={'&amp;lt;$(=max(DateVal))'}&amp;gt;} DateVal))"}&amp;gt;} SalesRetailGross])&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//sum({&amp;lt;DateText={"=$(=max({&amp;lt;DateText={'&amp;lt;$(=max(DateText))'}&amp;gt;} DateText))"}&amp;gt;} SalesRetailGross])&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=max({&amp;lt;DateId={'&amp;lt;$(=max(DateId))'}&amp;gt;} DateId))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesRetailGross]) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TH bgcolor="#f5f5f5" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DateVal&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH bgcolor="#f5f5f5" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DateText&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Sales2012-09-19&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Previous Date&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;19/09/2012 00:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2012-09-19&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;£1145448.02&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Not sure how to attached the QV to this&amp;nbsp; discussion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 09:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457914#M1161576</guid>
      <dc:creator />
      <dc:date>2012-12-21T09:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457915#M1161577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, it's a bit more tricky than I accounted for. Attached is an example that works. I use a variable to calculate the previous date and use the variable in the expression for the previous sales. Also I use a calculated dimension so only the selected date shows in the table. I hope this helps you solve your challenge. In the expression for the variable you need to make sure that the Date field you use is a real date, not a text string. Otherwise the max function doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 10:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457915#M1161577</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-21T10:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457916#M1161578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou very much - I shall try this once im back from my xmas break &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 15:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457916#M1161578</guid>
      <dc:creator />
      <dc:date>2012-12-21T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Show previous dates data in same row as date selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457917#M1161579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; Thanks that works great thankyou :-). &lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 09:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-dates-data-in-same-row-as-date-selected/m-p/457917#M1161579</guid>
      <dc:creator />
      <dc:date>2013-01-02T09:42:11Z</dc:date>
    </item>
  </channel>
</rss>

