<?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: Show last 5 values in a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550553#M440234</link>
    <description>&lt;P&gt;In the table where we are linked to dates, we do have several of them.&lt;/P&gt;&lt;P&gt;%EffectiveFromDate_Key&lt;BR /&gt;YearMonth&lt;BR /&gt;Date&lt;BR /&gt;WorkingDay&lt;BR /&gt;EndMonth&lt;BR /&gt;Month&lt;BR /&gt;Year&lt;BR /&gt;Week&lt;BR /&gt;Day&lt;BR /&gt;YearQuarter&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 14:19:30 GMT</pubDate>
    <dc:creator>Kunkulis</dc:creator>
    <dc:date>2019-02-28T14:19:30Z</dc:date>
    <item>
      <title>Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550506#M440230</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I to create a bar chart where on X-Axis I have quarter date written as YYYYQN (i.e. 2019Q1)&lt;BR /&gt;Using the Dimension Limits to show first 5 and reversing the order via Sort table give the information I want to see, but it show it in wrong order - current quarter is show on the left, but should be on the right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last option is to get it via Expressions, currently this returns the correct data, but it has no limitation on the last 5 quarters:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Event={'Criteria1', 'Criteria2', 'Criteria3', 'Criteria4'}, CCY= %Currency&amp;gt;}&lt;BR /&gt;ExRate * [AMOUNT])/1000000&lt;/P&gt;&lt;P&gt;So I get chart to show information from 2006Q1&lt;/P&gt;&lt;P&gt;The Quarter column name is 'YearQuarter'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;BR /&gt;The items in YearQuarter are ordered in ascending order - starts with the oldest 2006Q1 and ends with 2019Q1&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550506#M440230</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2024-11-16T04:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550513#M440231</link>
      <description>&lt;P&gt;Do you have a date field (in addtion to YearQuarter) to restrict for the last 5 quarter?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 13:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550513#M440231</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-28T13:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550553#M440234</link>
      <description>&lt;P&gt;In the table where we are linked to dates, we do have several of them.&lt;/P&gt;&lt;P&gt;%EffectiveFromDate_Key&lt;BR /&gt;YearMonth&lt;BR /&gt;Date&lt;BR /&gt;WorkingDay&lt;BR /&gt;EndMonth&lt;BR /&gt;Month&lt;BR /&gt;Year&lt;BR /&gt;Week&lt;BR /&gt;Day&lt;BR /&gt;YearQuarter&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 14:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550553#M440234</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2019-02-28T14:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550601#M440238</link>
      <description>&lt;P&gt;Then use Date field set analysis to do this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;Event = {'Criteria1', 'Criteria2', 'Criteria3', 'Criteria4'},&lt;BR /&gt;      CCY= %Currency,&lt;BR /&gt;      Date = {"$(='&amp;gt;=' &amp;amp; Date(QuarterStart(Max(Date), -5), 'DateFieldFormatHere') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'DateFieldFormatHere'))"}&amp;gt;}
ExRate * [AMOUNT])/1000000&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550601#M440238</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-28T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550606#M440239</link>
      <description>The solution does decrease the amount of Quarters I see, thank you.&lt;BR /&gt;I had a solution similar to this, but using endmonths and just having -13, but the issue with this one was, that the the sum would be wrong each month, since new values would be added to current quarter each month, but for the last quarter, each month they would reduce until it goes on to the next quarter. I hope you understood what I meant</description>
      <pubDate>Thu, 28 Feb 2019 15:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550606#M440239</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2019-02-28T15:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550614#M440240</link>
      <description>&lt;P&gt;Nope, I don't really understand. Can you elaborate with an example may be?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550614#M440240</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-28T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550901#M440262</link>
      <description>&lt;P&gt;This was the date range at the beginning I used:&amp;nbsp;&lt;/P&gt;&lt;P&gt;{$&amp;lt;(EndMonth)={"$(='&amp;gt;='&amp;amp;AddMonths(MonthEnd(today((EndMonth))),-13)&amp;amp;'&amp;lt;='&amp;amp;MonthEnd(today()-1))"}&lt;/P&gt;&lt;P&gt;I used EndMonth because for all the new entries next to the registration date they show monthend date, so it felt a bit safer&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;2018-01&lt;/TD&gt;&lt;TD&gt;2018-02&lt;/TD&gt;&lt;TD&gt;2018-03&lt;/TD&gt;&lt;TD&gt;2018-04&lt;/TD&gt;&lt;TD&gt;2018-05&lt;/TD&gt;&lt;TD&gt;2018-06&lt;/TD&gt;&lt;TD&gt;2018-07&lt;/TD&gt;&lt;TD&gt;2018-08&lt;/TD&gt;&lt;TD&gt;2018-09&lt;/TD&gt;&lt;TD&gt;2018-10&lt;/TD&gt;&lt;TD&gt;2018-11&lt;/TD&gt;&lt;TD&gt;2018-12&lt;/TD&gt;&lt;TD&gt;2019-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018Q1&lt;/TD&gt;&lt;TD&gt;2018Q1&lt;/TD&gt;&lt;TD&gt;2018Q1&lt;/TD&gt;&lt;TD&gt;2018Q2&lt;/TD&gt;&lt;TD&gt;2018Q2&lt;/TD&gt;&lt;TD&gt;2018Q2&lt;/TD&gt;&lt;TD&gt;2018Q3&lt;/TD&gt;&lt;TD&gt;2018Q3&lt;/TD&gt;&lt;TD&gt;2018Q3&lt;/TD&gt;&lt;TD&gt;2018Q4&lt;/TD&gt;&lt;TD&gt;2018Q4&lt;/TD&gt;&lt;TD&gt;2018Q4&lt;/TD&gt;&lt;TD&gt;2019Q1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the table above, you see the YYYY-MM and to which quarter it goes.&lt;/P&gt;&lt;P&gt;So my concern is that in the formula I used at first it would add now 2019-02 to 2019Q1, but it would remove the 2018-01 from 2018Q1, thus 2018Q1 would only have data for the 2018-02 and 2018-03.&lt;/P&gt;&lt;P&gt;If it is still unclear, maybe you can explain how your formula works?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 05:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1550901#M440262</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2019-03-01T05:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1551088#M440280</link>
      <description>&lt;P&gt;QuarterStart takes you to the beginning of the Quarter and that is why you should use QuarterStart instead of MonthStart or AddMonths. Give the expression I gave a shot and see what you get.&lt;/P&gt;&lt;P&gt;Also, you can test this expression in a text box object&lt;/P&gt;&lt;PRE&gt;='&amp;gt;=' &amp;amp; Date(QuarterStart(Today(), -5)) &amp;amp; '&amp;lt;=' &amp;amp; Date(Today())&lt;/PRE&gt;&lt;P&gt;to see what range will be used based on Today()&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 13:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1551088#M440280</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-01T13:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show last 5 values in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1551091#M440281</link>
      <description>Thank you for your help</description>
      <pubDate>Fri, 01 Mar 2019 13:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-5-values-in-a-chart/m-p/1551091#M440281</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2019-03-01T13:08:50Z</dc:date>
    </item>
  </channel>
</rss>

