<?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: Showing last value only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96731#M604075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In the chart expression: &lt;BR /&gt;&lt;EM&gt;Avg(&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;{&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LastFlag={1}&lt;/SPAN&gt;&amp;gt;} &lt;/SPAN&gt;[MEASURE])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;And the script where you build the dataset should have this line of code implemented in there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YourTable should be the name of the table where the dimension "Measure" is residented. And this piece of code should be loaded after YourTable has been loaded. This is as easy i can make it for you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Tmp_MaxValue:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Period) as Period&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Resident &lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;YourTable&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Where Measure1 &amp;lt;&amp;gt; null() and Measure2 &amp;lt;&amp;gt; null();&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;SPAN style="font-weight: inherit;"&gt;let vMaxPeriod = num(peek('&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-size: 13.3333px;"&gt;Period', '-1','&lt;SPAN style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Tmp_MaxValue'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;));&lt;BR /&gt;Drop table Tmp_MaxValue;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Left join(&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;YourTable&lt;/SPAN&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vMaxPeriod)' as Period_Key,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as LastFlag&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Autogenerate 1;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Sep 2018 07:58:04 GMT</pubDate>
    <dc:creator>Kalmer</dc:creator>
    <dc:date>2018-09-08T07:58:04Z</dc:date>
    <item>
      <title>Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96723#M604067</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;&lt;/P&gt;&lt;P&gt;I tried finding a solution on the forum, but the related subjects I found get very detailed very quickly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of data points, and since they are cumulative I just want to show the last one in a piechart. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-09-05_15-44-09.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212721_2018-09-05_15-44-09.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As mentioned, I would like to make a piechart to show how much each measure is part of the total. Since the periods are now blank but can be filled in the future ( and I want it to be automated ), how can I make this piechart so that it always takes the last period that has data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Qlik Cloud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96723#M604067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T13:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96724#M604068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not isnull()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 15:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96724#M604068</guid>
      <dc:creator>wade12</dc:creator>
      <dc:date>2018-09-05T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96725#M604069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Wade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using that formula, the piechart will not take the last value but will simply ignore 0 values, right? How would I still only the show last value and ignore the previous ones?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 10:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96725#M604069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-06T10:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96726#M604070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;BR /&gt;Try to create a temp table and peek it out of there?&lt;BR /&gt;Later you can leave it as an external table or left join it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YourTable:&lt;/P&gt;&lt;P&gt;LOAD *&lt;BR /&gt;Period as Period_Key,&lt;BR /&gt;Period,&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//IF your Period is a numeric value or date&lt;/P&gt;&lt;P&gt;Tmp_MaxValue:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Period) as Period&lt;/P&gt;&lt;P&gt;Resident YourTable&lt;BR /&gt;Where Measure1 &amp;lt;&amp;gt; null() and Measure2 &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//IF your Period is a like shown in your example ("Period 1").&lt;BR /&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Tmp_MaxValue&lt;/SPAN&gt;:&lt;BR /&gt;Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident YourTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Where Measure1 &amp;lt;&amp;gt; null() and Measure2 &amp;lt;&amp;gt; null()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;order by Period desc; //if this line does not work, then try the next line as last line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//order by subfield('Period', ' ', -1) desc; //then you only have the last number of Period 1.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMaxPeriod = num(peek('&lt;SPAN style="font-size: 13.3333px;"&gt;Period', '-1','&lt;SPAN style="font-size: 13.3333px;"&gt;Tmp_MaxValue'&lt;/SPAN&gt;&lt;/SPAN&gt;));&amp;nbsp; // or peek('Period'&lt;SPAN style="font-size: 13.3333px;"&gt;('&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Period', '-1','&lt;SPAN style="font-size: 13.3333px;"&gt;Tmp_MaxValue'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;) //Depends on num or text value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Left join(YourTable)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vMaxPeriod)' as Period_Key,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as LastFlag&lt;/P&gt;&lt;P&gt;Autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use it in your char in the SET analysis. example: sum({&amp;lt;{OtherParams=, LastFlag={1}}&amp;gt;}Measure1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 11:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96726#M604070</guid>
      <dc:creator>Kalmer</dc:creator>
      <dc:date>2018-09-06T11:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96727#M604071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use peek function to lookup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 12:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96727#M604071</guid>
      <dc:creator>wade12</dc:creator>
      <dc:date>2018-09-06T12:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96728#M604072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kalmer, the 1st option is the case, the period is a numeric value (1-12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what to do with the piece of coding you described. Where should I enter that? Not in the formula line I assume, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 09:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96728#M604072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-07T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96729#M604073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RIanne,&lt;BR /&gt;Everything that has a Underline should be fixed to your code / tables / fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;IN SCRIPT:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Tmp_MaxValue:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Period) as Period&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident &lt;SPAN style="text-decoration: underline;"&gt;YourTable&lt;/SPAN&gt;&lt;BR /&gt;Where Measure1 &amp;lt;&amp;gt; null() and Measure2 &amp;lt;&amp;gt; null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;let vMaxPeriod = num(peek('&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Period', '-1','&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Tmp_MaxValue'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;));&lt;BR /&gt;Drop table Tmp_MaxValue;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Left join(&lt;SPAN style="text-decoration: underline;"&gt;YourTable&lt;/SPAN&gt;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vMaxPeriod)' as Period_Key,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as LastFlag&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Autogenerate 1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;IN EXPRESSION (SET ANALYSIS)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;&lt;SPAN style="text-decoration: underline;"&gt;OtherParams&lt;/SPAN&gt;=, LastFlag={1}&amp;gt;}&lt;SPAN style="text-decoration: underline;"&gt;Measure1&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;OtherParams = other parameteres you have in the expression (if you need them, else can skip that):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LastFlag={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;Measure1&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Should work in a PieChart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 10:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96729#M604073</guid>
      <dc:creator>Kalmer</dc:creator>
      <dc:date>2018-09-07T10:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96730#M604074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalmer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I write the code though? Currently the code I have is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg([MEASURE])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you put what code I should put in there? As you only underlined 'your table' I don't quite understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just using the function of the pie chart for the code. Should I enter the things you mentioned somewhere else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96730#M604074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-07T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96731#M604075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In the chart expression: &lt;BR /&gt;&lt;EM&gt;Avg(&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;{&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LastFlag={1}&lt;/SPAN&gt;&amp;gt;} &lt;/SPAN&gt;[MEASURE])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;And the script where you build the dataset should have this line of code implemented in there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YourTable should be the name of the table where the dimension "Measure" is residented. And this piece of code should be loaded after YourTable has been loaded. This is as easy i can make it for you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Tmp_MaxValue:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Period) as Period&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Resident &lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;YourTable&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Where Measure1 &amp;lt;&amp;gt; null() and Measure2 &amp;lt;&amp;gt; null();&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;SPAN style="font-weight: inherit;"&gt;let vMaxPeriod = num(peek('&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-size: 13.3333px;"&gt;Period', '-1','&lt;SPAN style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Tmp_MaxValue'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;));&lt;BR /&gt;Drop table Tmp_MaxValue;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Left join(&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;YourTable&lt;/SPAN&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vMaxPeriod)' as Period_Key,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as LastFlag&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Autogenerate 1;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2018 07:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96731#M604075</guid>
      <dc:creator>Kalmer</dc:creator>
      <dc:date>2018-09-08T07:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Showing last value only</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96732#M604076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're having trouble with building the app and just started with Qlik i suggest strongly to go through the tutorials and How-To's on the Qlik site.&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2018/Content/Tutorials/Tutorials-scripting-beginners.htm" title="https://help.qlik.com/en-US/sense/June2018/Content/Tutorials/Tutorials-scripting-beginners.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Content/Tutorials/Tutorials-scripting-beginners.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also alot of videos which give you a good overview of the possibilities in different subjects.&lt;BR /&gt;&lt;A href="https://community.qlik.com/docs/DOC-6932"&gt;New to Qlik Sense Videos&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Edit the code you should do the following:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Easy.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213080_Easy.jpg" style="height: 410px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 06:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-last-value-only/m-p/96732#M604076</guid>
      <dc:creator>Kalmer</dc:creator>
      <dc:date>2018-09-10T06:14:10Z</dc:date>
    </item>
  </channel>
</rss>

