<?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 Displaying Empty Buckets on the Bar Chart Legend in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Displaying-Empty-Buckets-on-the-Bar-Chart-Legend/m-p/1898418#M74166</link>
    <description>&lt;P&gt;Is there a way to display all the buckets created on the bar chart?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now I have created buckets like this in the data load editor:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If([Total Program Status Value] &amp;lt;= 0, '0', &lt;BR /&gt;If([Total Program&amp;nbsp; Status Value] &amp;gt; 0 and [Total Program Status Value] &amp;lt;=3, '1-3',&lt;BR /&gt;If([Total Program&amp;nbsp; Status Value] &amp;gt; 3 and [Total Program Status Value] &amp;lt;=6, '4-6',&lt;BR /&gt;If([Total Program Status Value] &amp;gt; 6 and [Total Program&amp;nbsp; Status Value] &amp;lt;=9, '7-9',&lt;BR /&gt;If([Total Program Status Value] &amp;gt; 9, '10+'&lt;BR /&gt;))))) AS [Bucket]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I created a Bar chart with two dimensions Program and Buckets then a measure&amp;nbsp; of&amp;nbsp;Count(DISTINCT{&amp;lt;[Bucket]&amp;gt;} [Program])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now, there are currently no 0 buckets the way the data is, so I can't get it to show up on the bar chart.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="heathqm_0-1646076042044.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73229iC91960A39F37D7B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="heathqm_0-1646076042044.png" alt="heathqm_0-1646076042044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I tried to put each bucket in as a separate measure like this:&amp;nbsp;Count(DISTINCT{&amp;lt;[Bucket] = {'0'}&amp;gt;} [Program]) but then the buckets are not selectable on the legend and I am only able to select one Program to filter by instead of the buckets.&lt;/P&gt;
&lt;P&gt;I had double checked to make sure 'Suppress 0 values' is not checked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 19:23:26 GMT</pubDate>
    <dc:creator>heathqm</dc:creator>
    <dc:date>2022-02-28T19:23:26Z</dc:date>
    <item>
      <title>Displaying Empty Buckets on the Bar Chart Legend</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-Empty-Buckets-on-the-Bar-Chart-Legend/m-p/1898418#M74166</link>
      <description>&lt;P&gt;Is there a way to display all the buckets created on the bar chart?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now I have created buckets like this in the data load editor:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If([Total Program Status Value] &amp;lt;= 0, '0', &lt;BR /&gt;If([Total Program&amp;nbsp; Status Value] &amp;gt; 0 and [Total Program Status Value] &amp;lt;=3, '1-3',&lt;BR /&gt;If([Total Program&amp;nbsp; Status Value] &amp;gt; 3 and [Total Program Status Value] &amp;lt;=6, '4-6',&lt;BR /&gt;If([Total Program Status Value] &amp;gt; 6 and [Total Program&amp;nbsp; Status Value] &amp;lt;=9, '7-9',&lt;BR /&gt;If([Total Program Status Value] &amp;gt; 9, '10+'&lt;BR /&gt;))))) AS [Bucket]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I created a Bar chart with two dimensions Program and Buckets then a measure&amp;nbsp; of&amp;nbsp;Count(DISTINCT{&amp;lt;[Bucket]&amp;gt;} [Program])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now, there are currently no 0 buckets the way the data is, so I can't get it to show up on the bar chart.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="heathqm_0-1646076042044.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73229iC91960A39F37D7B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="heathqm_0-1646076042044.png" alt="heathqm_0-1646076042044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I tried to put each bucket in as a separate measure like this:&amp;nbsp;Count(DISTINCT{&amp;lt;[Bucket] = {'0'}&amp;gt;} [Program]) but then the buckets are not selectable on the legend and I am only able to select one Program to filter by instead of the buckets.&lt;/P&gt;
&lt;P&gt;I had double checked to make sure 'Suppress 0 values' is not checked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 19:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-Empty-Buckets-on-the-Bar-Chart-Legend/m-p/1898418#M74166</guid>
      <dc:creator>heathqm</dc:creator>
      <dc:date>2022-02-28T19:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Empty Buckets on the Bar Chart Legend</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-Empty-Buckets-on-the-Bar-Chart-Legend/m-p/1898506#M74170</link>
      <description>&lt;P&gt;Not sure of the solution without having access to data and the app but I use sometimes this below trick to show dimensions with 0 metric values -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count(DISTINCT{&amp;lt;[Bucket]&amp;gt;} [Program]) + Count({1}0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 04:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-Empty-Buckets-on-the-Bar-Chart-Legend/m-p/1898506#M74170</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-03-01T04:11:25Z</dc:date>
    </item>
  </channel>
</rss>

