<?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: How to display end of period inventory in line chart ? (no sum) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1680135#M727774</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you it's working fine when i display my chart with weekly dimensions, but how can i do with Month and Quarter ?&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 01:40:17 GMT</pubDate>
    <dc:creator>Cyriltra</dc:creator>
    <dc:date>2020-02-28T01:40:17Z</dc:date>
    <item>
      <title>How to display end of period inventory in line chart ? (no sum)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1679344#M727772</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;each row in my database record is like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;Processing Date (dd/mm/yy)&lt;/TD&gt;&lt;TD width="25%"&gt;Region&lt;/TD&gt;&lt;TD width="25%"&gt;Sales&lt;/TD&gt;&lt;TD width="25%"&gt;EOP Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;21/02/20&lt;/TD&gt;&lt;TD width="25%"&gt;Americas&lt;/TD&gt;&lt;TD width="25%"&gt;1000&lt;/TD&gt;&lt;TD width="25%"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;22/02/20&lt;/TD&gt;&lt;TD width="25%"&gt;Europe&lt;/TD&gt;&lt;TD width="25%"&gt;1500&lt;/TD&gt;&lt;TD width="25%"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;23/02/20&lt;/TD&gt;&lt;TD width="25%"&gt;Asia&lt;/TD&gt;&lt;TD width="25%"&gt;500&lt;/TD&gt;&lt;TD width="25%"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i have a master calendar that derives weeks, month, quarter, years etc. from [Processing Date] field from past 3 years to year + 1 (so 2021 here)&lt;/P&gt;&lt;P&gt;I then display my sales in line chart (weekly, monthly, yearly) and using below definition which is working fine:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[454.year]={$(=Only([454.year]))}&amp;gt;}[Sales]) for current year&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[454.year]={$(=Only([454.year])-1)}&amp;gt;}[Sales]) for year -1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now want to also do a line chart but for my inventory. But I cannot use sum as it does not make sense here. So depending on the period set as dimension (ie can be by week, or quarter or year etc.),&amp;nbsp; I want to display the value at the end of this period.&lt;/P&gt;&lt;P&gt;Let's say my dimension is to display by week (so week 1 to week 52), I want the chart to display the inventory at the end of each week).&lt;/P&gt;&lt;P&gt;Browsing around, it seems a possible solution is to use&amp;nbsp;firstSortedValue(), but I 'm not sure how to use it. I tried below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;firstSortedValue([End Inv_C US$], -[Processing Date])&lt;/P&gt;&lt;P&gt;But it does not work....&lt;/P&gt;&lt;P&gt;Also, same as i did for my sales, I also need to display my end of period inventory for the year-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1679344#M727772</guid>
      <dc:creator>Cyriltra</dc:creator>
      <dc:date>2024-11-16T19:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to display end of period inventory in line chart ? (no sum)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1679399#M727773</link>
      <description>&lt;P&gt;Do you have days in you calendar? Use the last day of week (Fri, Sun, whatever you consider as last) in the set analysis, something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Day]={'Sun'}&amp;gt;}[EOP Inventory]) - if you have weeks as dimension in your chart, it will show you value only for Sunday.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 11:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1679399#M727773</guid>
      <dc:creator>DavidM</dc:creator>
      <dc:date>2020-02-26T11:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to display end of period inventory in line chart ? (no sum)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1680135#M727774</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you it's working fine when i display my chart with weekly dimensions, but how can i do with Month and Quarter ?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 01:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1680135#M727774</guid>
      <dc:creator>Cyriltra</dc:creator>
      <dc:date>2020-02-28T01:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to display end of period inventory in line chart ? (no sum)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1680313#M727775</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;I suppose you want always the last day, right? Try this:&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Sum({$&amp;lt;[Date]={"$(=Max(Date))"}&amp;gt;}[EOP Inventory]) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1680313#M727775</guid>
      <dc:creator>DavidM</dc:creator>
      <dc:date>2020-02-28T11:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to display end of period inventory in line chart ? (no sum)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1680456#M727776</link>
      <description>&lt;P&gt;This looks to be okay... what dimensions do you have in your chart where you are using this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue([End Inv_C US$], -[Processing Date])&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Feb 2020 15:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1680456#M727776</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-28T15:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to display end of period inventory in line chart ? (no sum)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1689567#M727777</link>
      <description>&lt;P&gt;You received a couple more posts and no further responses, so I am assuming you got a solution, please be sure you close out your thread by using the Accept as Solution button on the post(s) that helped you with things, or if you figured it out on your own, post what you did and then mark that post.&amp;nbsp; Marking things closes out the thread and gives the posters credit for the help and lets other Members know what worked.&amp;nbsp; If you still have questions, please leave an update post.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-end-of-period-inventory-in-line-chart-no-sum/m-p/1689567#M727777</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-03-31T17:23:33Z</dc:date>
    </item>
  </channel>
</rss>

