<?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 Bar chart - missing bar gap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253364#M1190762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the expression for products to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(not isnull(Country),Product)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 14:23:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-05T14:23:49Z</dc:date>
    <item>
      <title>Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253363#M1190761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached image displays the problem that i'm having. The blocks of bars surrounded by the orange boxes are countries (dimension, obviously), then there is one more dimension, the product that is sold in each country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The countries shown in the image have some products in common, but not all products. As a result, there is a gap, a placeholder, for a missing product. I tried "suppressing" zeros, but that didn't change anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can go about resolving this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siarhei K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 14:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253363#M1190761</guid>
      <dc:creator />
      <dc:date>2011-08-05T14:12:34Z</dc:date>
    </item>
    <item>
      <title>Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253364#M1190762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the expression for products to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(not isnull(Country),Product)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 14:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253364#M1190762</guid>
      <dc:creator />
      <dc:date>2011-08-05T14:23:49Z</dc:date>
    </item>
    <item>
      <title>Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253365#M1190763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, that didn't work.&lt;/P&gt;&lt;P&gt;It's not the country that's null, it's the product. I just tried it this way, =if(not isnull(Product),Product), but surely enough that didn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 14:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253365#M1190763</guid>
      <dc:creator />
      <dc:date>2011-08-05T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253366#M1190764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about &lt;/P&gt;&lt;P&gt;=if(not isnull(Product),Country)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 14:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253366#M1190764</guid>
      <dc:creator />
      <dc:date>2011-08-05T14:29:13Z</dc:date>
    </item>
    <item>
      <title>Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253367#M1190765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can tell you without trying that that's not going to work. The bar lengths are determined by sum(Product), so "substituting the Country if Product is null" doesn't make any sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 14:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253367#M1190765</guid>
      <dc:creator />
      <dc:date>2011-08-05T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253368#M1190766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc, please note that every Product exists in at least one country.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 14:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253368#M1190766</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-05T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253369#M1190767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I think I understand.&lt;/P&gt;&lt;P&gt;Example is I have 2 dimensions, year and month, and it is taking the sum of costs for each. After august shows blank because I have it as a grouped bar chart and sept on has not happened yet, but last year it did so it still shows the empty spot because the chart is looking at it as a 0 value. if both years had no cost in sept. it would not show at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try making one dimension =Country &amp;amp; '-' &amp;amp; Product and see if it removes these blank sections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG height="582" width="768" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Ok my chart did not show up. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6312_untitled.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: marcsliving&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 14:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253369#M1190767</guid>
      <dc:creator />
      <dc:date>2011-08-05T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253370#M1190768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Definitely, combining the two fields solve a problem, but creates a few new ones!&lt;/P&gt;&lt;P&gt;With that solution, i cannot group products by country and i cannot color-code the same product for different countries, because the identifier for each bar is now unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 19:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253370#M1190768</guid>
      <dc:creator />
      <dc:date>2011-08-08T19:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253371#M1190769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what you mean by not being able to group products by country.&amp;nbsp; If country is first in your combination, and product is second, and you sort, then the products will be grouped by country.&amp;nbsp; As for coloring the same product the same across different countries, you can handle that with a background color expression of some sort, like pick(match(Product,'A','B'),red(),blue()).&amp;nbsp; Or as might be more easily maintained, load the RGB values for products in a table, and then use something like if(R,RGB(R,G,B)) as your background color expression.&amp;nbsp; That still leaves new products with default colors.&amp;nbsp; I wrote a script before that assigned random color values to missing dimension values, but I'm not finding the example.&amp;nbsp; Ah, there it is.&amp;nbsp; Attaching it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Customer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Customer,R,G,B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;A,200,100,100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;B,100,200,100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;C,100,100,200&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OUTER JOIN (Customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD text(fieldvalue('Customer',recno())) as Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AUTOGENERATE fieldvaluecount('Customer')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Customer2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(R,R,100+floor(rand()*101)) as R&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(G,G,100+floor(rand()*101)) as G&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(B,B,100+floor(rand()*101)) as B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DROP TABLE Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 23:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253371#M1190769</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-08T23:21:41Z</dc:date>
    </item>
    <item>
      <title>Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253372#M1190770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you're getting at, but in your example, if I switch to grouped (rather than stacked) style then I still get the gaps when all of the possible products are showing. Stacked works, but I can't use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253372#M1190770</guid>
      <dc:creator />
      <dc:date>2011-08-09T13:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart - missing bar gap</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253373#M1190771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't giving you the complete solution in that example, just the solution to your most recent problem.&amp;nbsp; But if you combine the ideas of a concatenated dimension with RGB values assigned by product, you'll get what I think you want.&amp;nbsp; I guess that wasn't clear.&amp;nbsp; See attached.&amp;nbsp; There are no gaps, the customers are grouped and the products are consistently colored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Yes, QlikView should really just have a checkbox to eliminate the gaps, or something along those lines, but sometimes we have to make do with what we have.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Attached another variation on the solution, this time only displaying the customer on the bottom since the product is described by the color.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 17:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-missing-bar-gap/m-p/253373#M1190771</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-09T17:08:42Z</dc:date>
    </item>
  </channel>
</rss>

