<?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 Using Text in chart to display last data point on line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372667#M576113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So vStartDate and vAmt are constant, not depending on your dimension, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Return? Do you select one value, like from a list of percentages 1%,2%,3%...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Return is also independent from Date, I think you probably could use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=$(vAmt)*Pow((1+[Return]), count(distinct Date) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which should be no different from a&amp;nbsp; compound interest calculation. But maybe I've misunderstood your setting completely.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2012 21:04:10 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-04-30T21:04:10Z</dc:date>
    <item>
      <title>Using Text in chart to display last data point on line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372664#M576110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Hi All, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I am trying to display the last data point value from my line chart to a text in chart.&amp;nbsp; But I do not know how to reference the last data point in the text in chart expressive.&amp;nbsp; My dimension is [Date] and my expressive is [MV], where [MV] is "=if([Date]=vStartDate,($(vAmt))*(1+[Return]),(above([MV])*(1+[Return])))"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I don't think set analysis work with the above function. I try using the below expressive with no luck:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;"=$(=Max(Date))"&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[MV]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;[MV] is the label for my vMV expressive column, I don't need to sum.&amp;nbsp; I just need to somehow reference the value of [MV] where Date=max(date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;Thanks.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 21:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372664#M576110</guid>
      <dc:creator />
      <dc:date>2012-04-27T21:25:07Z</dc:date>
    </item>
    <item>
      <title>Using Text in chart to display last data point on line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372665#M576111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just want to show the last data point value, you can use a conditional formatting of the data point value, maybe like shown here by John:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/116857#116857"&gt;http://community.qlik.com/message/116857&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to format the text in chart in a more complex way or show the value in a different chart object (which should be equivalent to your problem), you could try restructuring your formula:&lt;/P&gt;&lt;P&gt;if RETURN value is constant for all dates, your expression could maybe transformed into something like this:&lt;/P&gt;&lt;P&gt;= FirstSortedValue($(vAmt), Date) * pow((1+[Return]),count(Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your data model and requirements, something like this could work or maybe won't work. It would be helpful if you explain your other fields and the variable $(vAmt) a bit more. At best, you could attach a small sample app to your posting that demonstrate your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2012 11:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372665#M576111</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-04-28T11:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Text in chart to display last data point on line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372666#M576112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Thanks for your help, below are the fields and variables involve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields:&lt;/P&gt;&lt;P&gt;[Date]=date&lt;/P&gt;&lt;P&gt;[Return]=return of fund or index or stock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables:&lt;/P&gt;&lt;P&gt;vStartDate=variable from input box from user&lt;/P&gt;&lt;P&gt;vAmt=variable from input box from user for initial investment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that helps clarified the fields.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 17:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372666#M576112</guid>
      <dc:creator />
      <dc:date>2012-04-30T17:17:40Z</dc:date>
    </item>
    <item>
      <title>Using Text in chart to display last data point on line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372667#M576113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So vStartDate and vAmt are constant, not depending on your dimension, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Return? Do you select one value, like from a list of percentages 1%,2%,3%...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Return is also independent from Date, I think you probably could use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=$(vAmt)*Pow((1+[Return]), count(distinct Date) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which should be no different from a&amp;nbsp; compound interest calculation. But maybe I've misunderstood your setting completely.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 21:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372667#M576113</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-04-30T21:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Text in chart to display last data point on line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372668#M576114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, vStartDate and vAmt are constant and independent of the dimension but the returns will vary per the data stream and depends on the Date. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 16:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Text-in-chart-to-display-last-data-point-on-line-chart/m-p/372668#M576114</guid>
      <dc:creator />
      <dc:date>2012-05-01T16:14:10Z</dc:date>
    </item>
  </channel>
</rss>

