<?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 Creating trendline including zeros in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1877702#M72348</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I am trying to create a trendline presenting data for sales each day. I have a column (sales) showing 0 or 1 depending on if the sales happened on that particular day (reportdate) and then broken down by categories, which category has been sold that day.&lt;/P&gt;
&lt;P&gt;0 represents NO SALES, whereas 1 represents SALES. I am trying to capture if it is 1, then count the categories on that particular day (reportdate), and if it's zero, return it as 0 on the line chart.&lt;/P&gt;
&lt;P&gt;My problem is how to capture the zeros for the line chart. I'm using this formula, but it is working only for the sales representing 1.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;count({&amp;lt;sales = {'1'}&amp;gt;}category)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I want to count categories for 1 but not for zeros. If it's 0, I want to return it as zero. Is this possible to achieve?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;My suggestions are greatly appreciated!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 21:22:29 GMT</pubDate>
    <dc:creator>dia2021</dc:creator>
    <dc:date>2022-01-05T21:22:29Z</dc:date>
    <item>
      <title>Creating trendline including zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1877702#M72348</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I am trying to create a trendline presenting data for sales each day. I have a column (sales) showing 0 or 1 depending on if the sales happened on that particular day (reportdate) and then broken down by categories, which category has been sold that day.&lt;/P&gt;
&lt;P&gt;0 represents NO SALES, whereas 1 represents SALES. I am trying to capture if it is 1, then count the categories on that particular day (reportdate), and if it's zero, return it as 0 on the line chart.&lt;/P&gt;
&lt;P&gt;My problem is how to capture the zeros for the line chart. I'm using this formula, but it is working only for the sales representing 1.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;count({&amp;lt;sales = {'1'}&amp;gt;}category)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I want to count categories for 1 but not for zeros. If it's 0, I want to return it as zero. Is this possible to achieve?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;My suggestions are greatly appreciated!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1877702#M72348</guid>
      <dc:creator>dia2021</dc:creator>
      <dc:date>2022-01-05T21:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating trendline including zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1877724#M72350</link>
      <description>&lt;P&gt;&lt;SPAN&gt;count({&amp;lt;sales = {'1'}&amp;gt;}category)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;+ &lt;FONT color="#FF0000"&gt;0 *&lt;/FONT&gt;&lt;SPAN&gt;count({&amp;lt;sales = {'&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;'}&amp;gt;}category) ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 22:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1877724#M72350</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2022-01-05T22:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating trendline including zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1878057#M72389</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49570"&gt;@mikaelsc&lt;/a&gt;&amp;nbsp; Thanks for the reply! I tried the way you have suggested above, but unfortunately second part of the expression is not working. Any other idea?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 15:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1878057#M72389</guid>
      <dc:creator>dia2021</dc:creator>
      <dc:date>2022-01-06T15:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating trendline including zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1878182#M72399</link>
      <description>&lt;P&gt;and what is not working ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikaelsc_0-1641504632904.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69717i58B19A0E76964857/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikaelsc_0-1641504632904.png" alt="mikaelsc_0-1641504632904.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 21:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1878182#M72399</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2022-01-06T21:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating trendline including zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1878575#M72437</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49570"&gt;@mikaelsc&lt;/a&gt;&amp;nbsp; Interesting. Let me try again and find out where the issue is. I'll get back to you. Thanks for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 17:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-trendline-including-zeros/m-p/1878575#M72437</guid>
      <dc:creator>dia2021</dc:creator>
      <dc:date>2022-01-07T17:00:50Z</dc:date>
    </item>
  </channel>
</rss>

