<?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: Re: Text in Chart: Display Last X-axis Data Point in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558298#M548960</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;I was using Text In Chart because under the heading of every chart title, I am hoping to be able to display the &lt;STRONG&gt;YTD:&lt;/STRONG&gt; value (as opposed to on top of the bar) -- would I be able to reference this point in Text in Chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well, I tried the instructions above to have it display in the chart (in case the YTD: won't work) and I ended up with dashes above every point. I've attached an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I greatly appreciate your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 17:07:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-23T17:07:53Z</dc:date>
    <item>
      <title>Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558294#M548956</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 am brand new to this so I apologize if this has already been posted - I've read through a couple posts already and have not been able to understand to solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="52000" alt="SC_SS.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/52000_SC_SS.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get YTD to show the most recent value - 88% (only value, not sum). Originally I had put in the Text in Chart:&lt;/P&gt;&lt;P&gt;='YTD:'&amp;amp;only(ServiceCoverage)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I realized without selecting the month, it does not know which value to choose, but I would like it to display the last data point on the x-axis that contains data. Going forward in 2014, in February, we will be talking about the January data - where only January would have data and the rest of the year will be 0... going onto March, we will have January and Feb data, but I only want it to display Feb data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the max function too, but it returns the max Service Coverage point (which in this case gets me the December number) but I have other charts where the last data point is not the highest value. Is there an expression to pull the Y-axis value for the max X-axis value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other solutions I have read involved pulling from today's date or choosing a specific date as today's date, and I would like to stay away from that if possible - I just want the last x-axis Y-value (that is not 0) to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I have the personal edition, I am unable to view other .qvw files and would appreciate the expression in text on the forum &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 16:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558294#M548956</guid>
      <dc:creator />
      <dc:date>2014-01-23T16:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558295#M548957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A href="https://community.qlik.com/message/448559"&gt;Re: show only the last value in a graphic&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 16:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558295#M548957</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-23T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558296#M548958</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;In the &lt;STRONG&gt;text in chart&lt;/STRONG&gt; section, I inserted the below, and I got a dash in return (lost the 'YTD:' as well)... do you know what I may be doing wrong?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='YTD:'&amp;amp; &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(Month))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Service Coverage - All (%)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 16:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558296#M548958</guid>
      <dc:creator />
      <dc:date>2014-01-23T16:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558297#M548959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It shouldn't be Text in Chart, it should be a second expression.&amp;nbsp; Just uncheck bar and check Values on Data Points:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/52002_pastedImage_0.png" style="width: 620px; height: 551px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 16:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558297#M548959</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-23T16:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558298#M548960</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;I was using Text In Chart because under the heading of every chart title, I am hoping to be able to display the &lt;STRONG&gt;YTD:&lt;/STRONG&gt; value (as opposed to on top of the bar) -- would I be able to reference this point in Text in Chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well, I tried the instructions above to have it display in the chart (in case the YTD: won't work) and I ended up with dashes above every point. I've attached an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I greatly appreciate your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 17:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558298#M548960</guid>
      <dc:creator />
      <dc:date>2014-01-23T17:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558299#M548961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't realize you wanted it right at the top of the chart.&amp;nbsp; You can do that using a formula like this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=sum({&amp;lt;Date={'$(=date(max(Date)))'}&amp;gt;}Value)&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with your data is that month is just a text field, so there's no way to take a max() of it.&amp;nbsp; I would suggest having an actual Date field instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 17:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558299#M548961</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-23T17:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558300#M548962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you instruct me as how to change it to an actual Date field? Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 17:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558300#M548962</guid>
      <dc:creator />
      <dc:date>2014-01-23T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558301#M548963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it's just a month name, how am I supposed to know what year to associate it to?&amp;nbsp; What day to associate it to?&amp;nbsp; Don't you have this information in your file somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 17:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558301#M548963</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-23T17:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558302#M548964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ok - so I should edit it straight from the source, as opposed to doing any manipulations in Qlikview.. I wasn't sure if I was supposed to assign anything within the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! I will try your formula after I've fixed up my file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 17:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558302#M548964</guid>
      <dc:creator />
      <dc:date>2014-01-23T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558303#M548965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't get me wrong--you could manipulate it in QlikView.&amp;nbsp; But if you have multiple years of data and only a month field, how would QlikView know what years to associate which rows to?&amp;nbsp; It's easier if the data model is clean than trying to force it into QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 17:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558303#M548965</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-23T17:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558304#M548966</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;Sorry to keep bothering you on this. I've finally changed the format to a Date format (with year.. I originally had a separate Column for that)..and I've set the x-axis to Date. Per your suggestion, I've put the following into the Text in Chart and I still can't get it to pull the last value.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;='YTD:'&amp;amp;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(=date(max(Date)))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Service Coverage - All (%)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;And when I put sum instead of only, I get 0.00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558304#M548966</guid>
      <dc:creator />
      <dc:date>2014-01-23T19:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558305#M548967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has to do with your date format.&amp;nbsp; The date() function isn't needed inside the set analysis:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;='YTD:'&amp;amp;only({&amp;lt;Date={'$(=max(Date))'}&amp;gt;}[Service Coverage - All (%)])&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558305#M548967</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-23T19:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Text in Chart: Display Last X-axis Data Point</title>
      <link>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558306#M548968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much!!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-in-Chart-Display-Last-X-axis-Data-Point/m-p/558306#M548968</guid>
      <dc:creator />
      <dc:date>2014-01-23T19:29:52Z</dc:date>
    </item>
  </channel>
</rss>

