<?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: Line chart show the latest value instead of zero in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1904386#M74576</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162811"&gt;@Ax&lt;/a&gt;&amp;nbsp; can you share a sample data and the expected output ?&lt;/P&gt;</description>
    <pubDate>Sun, 13 Mar 2022 11:29:12 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2022-03-13T11:29:12Z</dc:date>
    <item>
      <title>Line chart show the latest value instead of zero</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1904380#M74575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a line chart where the dimension is Year Month and the measure is Price.&lt;/P&gt;
&lt;P&gt;For future months the price is 0 but instead of it, I would like the line chart to show the last positive value for the future months.&lt;/P&gt;
&lt;P&gt;For some reason, FirstSortedValue or Sum does not work with measure Price.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 10:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1904380#M74575</guid>
      <dc:creator>Ax</dc:creator>
      <dc:date>2022-03-13T10:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart show the latest value instead of zero</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1904386#M74576</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162811"&gt;@Ax&lt;/a&gt;&amp;nbsp; can you share a sample data and the expected output ?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 11:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1904386#M74576</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2022-03-13T11:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart show the latest value instead of zero</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1904388#M74577</link>
      <description>&lt;P&gt;Currently the line chart is showing&lt;/P&gt;
&lt;TABLE border="1" width="44.4438290471815%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Year Month&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Price&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Jan 2022&lt;/TD&gt;
&lt;TD&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Feb 2022&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;120&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Mar 2022&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Apr 2022&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I would need is to copy the last price to the future months&lt;/P&gt;
&lt;TABLE border="1" width="44.4438290471815%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Year Month&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Price&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Jan 2022&lt;/TD&gt;
&lt;TD&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Feb 2022&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;120&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Mar 2022&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;120&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Apr 2022&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;120&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know why but the Sum or FirstSortedValue do not recognize the 'Price' so I can't use those functions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I use it inside if function it recognizes it. For example IF(Price &amp;gt; 0, Price) works. I would just need somehow add to the else statement the most recent value that is not 0.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 12:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1904388#M74577</guid>
      <dc:creator>Ax</dc:creator>
      <dc:date>2022-03-13T12:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart show the latest value instead of zero</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1908374#M74881</link>
      <description>&lt;P&gt;I could not use the pre-calculated master item in the expression. When I copied the formula for the master item instead of using it, it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 19:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-show-the-latest-value-instead-of-zero/m-p/1908374#M74881</guid>
      <dc:creator>Ax</dc:creator>
      <dc:date>2022-03-22T19:51:17Z</dc:date>
    </item>
  </channel>
</rss>

