<?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: Latest data value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117493#M752748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidya,&lt;/P&gt;&lt;P&gt;If clause can not be the answer to the problem because I want &lt;STRONG&gt;"only and all"&lt;/STRONG&gt; the STOCK field values of the &lt;STRONG&gt;end&lt;/STRONG&gt; &lt;STRONG&gt;date&lt;/STRONG&gt; to be displayed (selected).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to use &lt;STRONG&gt;where clause &lt;/STRONG&gt;in a straight table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2018 09:24:56 GMT</pubDate>
    <dc:creator>absekrafi</dc:creator>
    <dc:date>2018-10-19T09:24:56Z</dc:date>
    <item>
      <title>Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117488#M752743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dimension called &lt;STRONG&gt;stock &lt;/STRONG&gt;in my oracle table.&lt;/P&gt;&lt;P&gt;When selecting an &lt;STRONG&gt;interval&lt;/STRONG&gt; of &lt;STRONG&gt;dates&lt;/STRONG&gt; I want to display the &lt;STRONG&gt;stock&lt;/STRONG&gt; of &lt;STRONG&gt;latest&lt;/STRONG&gt; &lt;STRONG&gt;date&lt;/STRONG&gt; &lt;STRONG&gt;only&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to implement that in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Abdallah&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/Latest-data-value/m-p/117488#M752743</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117489#M752744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can define variables on the dates and form logic around it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could write something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if(date= max(date), Stock, no)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;max(date) will be your latest date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 13:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117489#M752744</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-10-18T13:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117490#M752745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this but it is not working: &lt;/P&gt;&lt;P&gt;= if({&amp;lt;TRANSACTION_DATE= {"=$(vEndDate)"}&amp;gt; } ,STOCK,-1)&lt;/P&gt;&lt;P&gt;Where vEndDate = Max(TRANSACTION_DATE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Abdallah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 15:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117490#M752745</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-10-18T15:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117491#M752746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TRANSACTION_DATE='$(vEndDate)',Stock,-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 15:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117491#M752746</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-10-18T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117492#M752747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attachement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 15:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117492#M752747</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-10-18T15:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117493#M752748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidya,&lt;/P&gt;&lt;P&gt;If clause can not be the answer to the problem because I want &lt;STRONG&gt;"only and all"&lt;/STRONG&gt; the STOCK field values of the &lt;STRONG&gt;end&lt;/STRONG&gt; &lt;STRONG&gt;date&lt;/STRONG&gt; to be displayed (selected).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to use &lt;STRONG&gt;where clause &lt;/STRONG&gt;in a straight table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 09:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117493#M752748</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-10-19T09:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117494#M752749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I understand correctly, you have multiple records for the same date and you don't want them to be grouped together in the table, right? So say you have 3 records for a certain day, and that day is the max(date) for your selection, you want your table to show all 3 records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, you'd need some sort of unique identifier for every record in your data. If you don't already have one, you can simply add something like 'RowNo() as [ID]' to your load statement to give every record its own number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next create a straight table, and use Vidya's expression. To hide all the rows that aren't the max(date), change the '-1' to '0' in the expression and make sure the 'suppress zero values' is checked for the expression in the presentation tab in the chart properties. As your dimension you want both the unique identifier (ID in this case) and transaction_date. Finally, to hide the ID if you don't need/want it, also in the presentation tab, select 'hide column' for the ID column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result can be seen in the attached file. Hope this is what you're looking for &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 09:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117494#M752749</guid>
      <dc:creator>jensmunnichs</dc:creator>
      <dc:date>2018-10-19T09:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117495#M752750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens, Hi Vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called TRANSACTION_DATE (date as type) and a field called &lt;STRONG&gt;stock&lt;/STRONG&gt;. For every TRANSACTION_DATE I have a stock value.&lt;/P&gt;&lt;P&gt;I added vStarDate (&lt;SPAN style="font-size: 10pt;"&gt;=Min(TRANSACTION_DATE) ) and vEndDate(=Max(TRANSACTION_DATE) ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the &lt;STRONG&gt;stock&lt;/STRONG&gt; of the date vEndDate because its value reflects the stock available at the selected date (or the selected interval) and adding these values (of stock) has no meaning. The stock field represents the quantity of a product at a given date (again the sum of these values does not give a correct information).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I want to display only the &lt;STRONG&gt;stock&lt;/STRONG&gt; of the &lt;STRONG&gt;vEndDate&lt;/STRONG&gt; (the last date of the interval [vStartDate .. vEndDate])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Abdallah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 10:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117495#M752750</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-10-19T10:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117496#M752751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case, I'm assuming you only have one record for each date, so ignore the whole thing about adding an ID. In that case you just have to use Vidya's if expression but again, replace '-1' with '0' and make sure 'suppress zero values' is checked in the presentation tab. Use Transaction date as dimension, and you should have what you want. Watch what happens when you select a range of dates, it will still only show the stock for the most recent date selected (see attachment).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 10:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-data-value/m-p/117496#M752751</guid>
      <dc:creator>jensmunnichs</dc:creator>
      <dc:date>2018-10-19T10:39:53Z</dc:date>
    </item>
  </channel>
</rss>

