<?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: Display / determine value of most recent datapoint in chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551975#M551453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try taking a look at the attached.&amp;nbsp; It should give you some clues as to how yours needs to be set up.&amp;nbsp; If you need further assistance, you will need to post your .qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Nov 2013 15:42:52 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2013-11-23T15:42:52Z</dc:date>
    <item>
      <title>Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551974#M551452</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;I'm trying to achieve either of the following - refer the yellow highlighted text. Essentially I wish to label the last data point on a chart with its value, to avoid users having to mouseover to see the value which is difficult for mouse challenged users especially with narrow bars or line graphs to get the pointer placement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MarkerEfficiency-test.qvw.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/49266_MarkerEfficiency-test.qvw.png" style="width: 620px; height: 278px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I know one can check the display datapoints options in the expressions. However, if one has a lot of bars the values overlap are illegible anyway. I really just want to display the latest value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adapting the code from where a method was demonstrated to plot the legend/key on the line chart itself,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qliktips.com/2012/07/lose-legend-in-line-charts.html" title="http://www.qliktips.com/2012/07/lose-legend-in-line-charts.html"&gt;Qlik Tips: Lose the Legend in Line Charts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax suggested there was along the lines of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: normal; font-weight: normal; text-align: -webkit-auto; text-indent: 0px; font-size: medium; font-family: Courier;"&gt;&lt;STRONG&gt;Dual(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-style: normal; font-weight: normal; text-align: -webkit-auto; text-indent: 0px; font-size: medium; font-family: Courier;"&gt;&lt;STRONG&gt; If(MonthYear=Max(total MonthYear), CategoryType, ''),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-style: normal; font-weight: normal; text-align: -webkit-auto; text-indent: 0px; font-size: medium; font-family: Courier;"&gt;&lt;STRONG&gt; Sum(Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-style: normal; font-weight: normal; text-align: -webkit-auto; text-indent: 0px; font-size: medium; font-family: Courier;"&gt;&lt;STRONG&gt; )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not totally clear on the fields I should be using but I assumed MonthYear above is the Date dimension field which is the X axis of the chart and Sales is the actual value (line) being plotted, so the logic is that if the MonthYear is the latest one then to display the CategoryType name next to it. In my case I'd need to replace CategoryType with the value of the latest datapoint I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus if I have a chart (as shown) and lets assume I have a X axis dimension called Dayfield and a plotted bar value for each Dayfield called [Marker Efficiency].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can plot something on the right hand bar, but its always Null, so I think my issue more is with determining the value of the latest bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then tried creating a variable, adding it in my load script after the MarkerEfficiencyTable was loaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMarkerEfficiency_latest = Peek('[Marker Efficiency]',-1,'MarkerEfficiencyTable');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was then just going to use this value with ='Latest value =' &amp;amp; $(vMarkerEfficiency_latest)&lt;/P&gt;&lt;P&gt;to get it to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again I only get Nulls for the variable but the data clearly exists in memory somewhere because the chart plots fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&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, 20 Nov 2013 11:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551974#M551452</guid>
      <dc:creator />
      <dc:date>2013-11-20T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551975#M551453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try taking a look at the attached.&amp;nbsp; It should give you some clues as to how yours needs to be set up.&amp;nbsp; If you need further assistance, you will need to post your .qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Nov 2013 15:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551975#M551453</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-23T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551976#M551454</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In chart Properties -&amp;gt; Presentation-&amp;gt;Text in Chart -&amp;gt; Add Button -&amp;gt; Text (Give this expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Latest Value = ' &amp;amp; Sum({&amp;lt;DateDimensionName={'$(=Max(DateDimensionName))'}&amp;gt;} MeasureName)&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>Sat, 23 Nov 2013 16:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551976#M551454</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-11-23T16:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551977#M551455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole and Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You both suggest very similar methods. I was ia trying this type of approach but it didnt work for me ito getting correct output. Even now I get Nulls, so clearly I'm not doing something right. I even tried reproducing most of the example.qvw provided but adding my own test data. The example.qvw output is perfect, however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a test QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you will see I have some inline data - and I'm getting the date input as DD/MM format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then map this to an autogenerated Calendar. Whether I use the Calendar or just the inline table data only, I still dont get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems QV recognises the x-axis data as a date and then even though my last plotted value is in November it seems to be trying to use December as the max(Date). Also maybe its because my date field is in weekly periods - the last Friday of every week rather than day date sequential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[TestData]:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;WeekDate, ValueA, ValueB&lt;/P&gt;&lt;P&gt;05/04, 14, 243&lt;/P&gt;&lt;P&gt;12/04,&amp;nbsp;&amp;nbsp;&amp;nbsp; 34,&amp;nbsp;&amp;nbsp;&amp;nbsp; 220&lt;/P&gt;&lt;P&gt;19/04,&amp;nbsp;&amp;nbsp;&amp;nbsp; 65,&amp;nbsp;&amp;nbsp;&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you shed any more light? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 14:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551977#M551455</guid>
      <dc:creator />
      <dc:date>2013-11-25T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551978#M551456</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;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Max weekDate is not in dateformat and Maximum week date is 22/11.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 14:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551978#M551456</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-11-25T14:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551979#M551457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you have two expressions, you need to go the text in chart route (see attached):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/49497_pastedImage_0.png" style="width: 620px; height: 550px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 14:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551979#M551457</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-25T14:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551980#M551458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good point, I hadnt actually looked at Nicole's DateFormat in example.qvw. This was different from mine.&lt;/P&gt;&lt;P&gt;When I SET DateFormat='DD/MM'; in my script.&lt;/P&gt;&lt;P&gt;Nicole's code works fine with my weekly period data, and with Jagan's code if I just add the Date() function to the Max expression it works too, i.e.&lt;/P&gt;&lt;P&gt;='Latest Value = ' &amp;amp; Sum({&amp;lt;DateDimensionName={'$(=Max(&lt;STRONG&gt;Date&lt;/STRONG&gt;(DateDimensionName)))'}&amp;gt;} MeasureName)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 15:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551980#M551458</guid>
      <dc:creator />
      <dc:date>2013-11-25T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551981#M551459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I just tried that but it appears there are some caveats - if the text + value field length is longer than the space available before the first data value plot, not all the text shows - one just gets an elipsis&amp;nbsp; e.g. Latest Value A = ... Also, possibly because I'm using the same x-axis field in both expressions, if I add a 2nd line, for Value B that seems to overwrite the first one for Value A (or at least both texts appear on top of each other making it illegible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, no crisis because if I use the same methodology and enter both as a single concatenated expression in 'Show title in chart' I get everything to display. This works for me too. i.e. I did this.&lt;/P&gt;&lt;P&gt;='Latest value A =' &amp;amp; Sum({&amp;lt;WeekDate={'$(=Max(Date(WeekDate)))'}&amp;gt;} ValueA) &amp;amp; ' Latest value B =' &amp;amp; Sum({&amp;lt;WeekDate={'$(=Max(Date(WeekDate)))'}&amp;gt;} ValueB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above solves my issue assuming I only have 1 data table with a date dimension (or its a data island in a bigger qvw) which sadly is rarely the case since my models get complex fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I'd still like to be able to get both values A and B plot above the bar sometimes but using your If statement method it only plots on the last bar, whereas to get Value A to plot one would also need to plot on the 2nd last bar. I did try -7 from the period in the expression but that didnt seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. More critically, this method breaks when I link the table date field WeekDate to a common calendar which has a last date &amp;gt; island Max(Date(WeekDate)) (of 22 Nov in my case) because then Max(Date(WeekDate)) = the last date in the autogenerated common Calendar (in my case that is 31/12/2014) since this is part of a greater dashboard containing forecast values with additional date fields all called WeekDate. I have the calendar code commented out in the attached qvw. I get that the issue is likely with the use of the =Max function so is there any way of getting this to work with displaying the value of the last date record in a table even if there are even later date fields with the same date fieldname in the qvw used in other tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Possibly related to 2, but it still doesnt work for me when I do it standalone (without a common calendar) is how do I get this method to work if I aggregate the island date field into a date group - e.g. weeks into months. I tried that by making =Month(WeekDate) as the dimension and as an expression&lt;/P&gt;&lt;P&gt;=If(Month(WeekDate) = $(=max(Month(WeekDate))), sum(ValueA), '')&lt;/P&gt;&lt;P&gt;but this doesnt plot anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time thus far,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach an updated test qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551981#M551459</guid>
      <dc:creator />
      <dc:date>2013-11-25T16:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551982#M551464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With two expressions, you're not going to be able to display the latest value over each of the two latest bars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the problem with it cutting off the text and overlapping, if you hold down CTRL+SHIFT after clicking on the chart, you can move around stuff inside of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had a chance to look into the problem you're getting when adding the extra calendar table.&amp;nbsp; I can try to get back to you on that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551982#M551464</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-25T16:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551983#M551466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so when you add the calendar table in, you need to change your title in chart to:&lt;/P&gt;&lt;P&gt;='Latest value A =' &amp;amp; Sum({&amp;lt;WeekDate={"$(=Max({&amp;lt;ValueA={'?*'}&amp;gt;}Date(WeekDate)))"}&amp;gt;} ValueA) &amp;amp; ' Latest value B =' &amp;amp; Sum({&amp;lt;WeekDate={"$(=Max({&amp;lt;ValueA={'?*'}&amp;gt;}Date(WeekDate)))"}&amp;gt;} ValueB)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551983#M551466</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-25T16:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551984#M551468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;firstsortedvalue(aggr(sum(values),-MonthYear))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551984#M551468</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-25T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551985#M551469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, Nicole, that approach works a treat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also works with the island table so is a more universal solution. I'm guessing without me doing any RTM yet that the '?*' is a wildcard set so it displays any value at the x-axis point where it needs to find one. Whatever, it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the Monthly aggregation as&lt;/P&gt;&lt;P&gt;='Latest value A =' &amp;amp; Sum({&amp;lt;Month(WeekDate)={"$(=Max({&amp;lt;ValueA={'?*'}&amp;gt;}Month(WeekDate)))"}&amp;gt;} ValueA) &amp;amp; ' Latest value B =' &amp;amp; Sum({&amp;lt;Month(WeekDate)={"$(=Max({&amp;lt;ValueA={'?*'}&amp;gt;}Month(WeekDate)))"}&amp;gt;} ValueB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that doesnt work it seems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clever, your method looks promising too. However, if I substitute my fieldnames into the formula you suggested I get an expression error, so unless I did something wrong it looks to be missing a field from the expression syntax. I tried some combinations and on an island table (i.e. without including the common calendar script) I got this expression to work correctly. It gives the value of A on 22/11 in my test qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Firstsortedvalue(ValueA,-Aggr(sum(WeekDate),WeekDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I try the same idea on the monthly aggregation like this it doesnt work - I just get Null.&lt;/P&gt;&lt;P&gt;=Firstsortedvalue(ValueA,-Aggr(sum(Month(WeekDate)),Month(WeekDate)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Firstsortedvalue(Sum(ValueA),-Aggr(sum(Month(WeekDate)),Month(WeekDate)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression also doesnt work (whether aggregated into months or not i.e. as weeks) when I add in a common Calendar containing a later date than which exists in my plotted data table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;Thus, just one last thing to figure out then, showing the last plotted value when doing monthly agrregation in the presence of a common Calendar table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for your valuable input thus far,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 17:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551985#M551469</guid>
      <dc:creator />
      <dc:date>2013-11-25T17:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551986#M551470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstsorted value has an important behavior, if two or more values share the same rank, null is returned.&lt;/P&gt;&lt;P&gt;In this case, you should slightly change your rank expression.&lt;/P&gt;&lt;P&gt;Into your expressions sum(WeekDate) does not make sense to me.&lt;/P&gt;&lt;P&gt;Is it possible to post a sample of your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 17:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551986#M551470</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-25T17:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551987#M551471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're correct about the ?--it is a wildcard so that we only find dates where ValueA (or ValueB) exist (the length is 1 or greater).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for this:&lt;/P&gt;&lt;P&gt;='Latest value A =' &amp;amp; Sum({&amp;lt;Month(WeekDate)={"$(=Max({&amp;lt;ValueA={'?*'}&amp;gt;}Month(WeekDate)))"}&amp;gt;} ValueA) &amp;amp; ' Latest value B =' &amp;amp; Sum({&amp;lt;Month(WeekDate)={"$(=Max({&amp;lt;ValueA={'?*'}&amp;gt;}Month(WeekDate)))"}&amp;gt;} ValueB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work because you cannot have a calculation on the left side of the equal sign in set analysis.&amp;nbsp; You would need to create a new field in the load script where you calculate Month(WeekDate) and then use that in the set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 17:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551987#M551471</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-25T17:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Display / determine value of most recent datapoint in chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551988#M551472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kicking this up and dusting it off, because I have been searching the forum and did not come up with a simple and robust answer. However, I found a solution that works at least for me, although it might take some creative thinking to implement in your specific situation.&lt;/P&gt;&lt;P&gt;The expression has some properties you can set with expressions as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ShowValue.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92949_ShowValue.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;One of these is 'show value'. This can contain an expression that evaluates to either 0 (false) or 1 (true) based on the criteria you define. As I said, this involves some creative thinking on how to create a statement that will evaluate to true or false with the right conditions, but it should be possible to accomplish. &lt;/P&gt;&lt;P&gt;It can also be used in line charts to show values on datapoints for only some values in the dimension. 'Show value on datapoint' should be unchecked. Also mind the setting 'Max Values Shown' setting on the presentations tab. If this is too low, values will not show either &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="max values shown.jpg" class="jive-image image-2" src="/legacyfs/online/92951_max values shown.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just hope this will save someone else the hourslong quest it has cost me to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 14:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-determine-value-of-most-recent-datapoint-in-chart/m-p/551988#M551472</guid>
      <dc:creator>happydays1967</dc:creator>
      <dc:date>2015-07-15T14:12:35Z</dc:date>
    </item>
  </channel>
</rss>

