<?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 How to display multiple boolean dimensions along the X-axis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143415#M589350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks. I have a somewhat strange graph I'm trying to build and I can't figure it out.&lt;/P&gt;&lt;P&gt;So I have 5 boolean (Yes/No) fields in my table, let's call them Flag1-5. I have another dimension called Category.&lt;/P&gt;&lt;P&gt;I want to create a stacked bar graph that shows how many records exist that have each flag set segmented by Category.&lt;/P&gt;&lt;P&gt;So I want to see the 5 flag fields along the X axis, so 5 bars, and each bar segmented by Category, with the count as the expression.&lt;/P&gt;&lt;P&gt;Since you can only have 2 dimensions in a stacked bar graph, I'm not sure how to do this. Can anyone give me some advice and examples? Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2009 05:24:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-06T05:24:59Z</dc:date>
    <item>
      <title>How to display multiple boolean dimensions along the X-axis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143415#M589350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks. I have a somewhat strange graph I'm trying to build and I can't figure it out.&lt;/P&gt;&lt;P&gt;So I have 5 boolean (Yes/No) fields in my table, let's call them Flag1-5. I have another dimension called Category.&lt;/P&gt;&lt;P&gt;I want to create a stacked bar graph that shows how many records exist that have each flag set segmented by Category.&lt;/P&gt;&lt;P&gt;So I want to see the 5 flag fields along the X axis, so 5 bars, and each bar segmented by Category, with the count as the expression.&lt;/P&gt;&lt;P&gt;Since you can only have 2 dimensions in a stacked bar graph, I'm not sure how to do this. Can anyone give me some advice and examples? Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 05:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143415#M589350</guid>
      <dc:creator />
      <dc:date>2009-05-06T05:24:59Z</dc:date>
    </item>
    <item>
      <title>How to display multiple boolean dimensions along the X-axis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143416#M589351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you have to make a "fake" dimension. The attached example gives two different approaches for this. The first handles it all within the chart by using a synthetic dimension that is a ValueList from 1 to 5, then referencing that list to decide which flag to use. The second handles it largely within the script by adding a Flags table with Category, FlagName and FlagValue. The expressions also take advantage of the fact that Boolean values are internally -1 for true and 0 for false by doing a -sum(Boolean expression) to get a count of trues, though I went ahead and used a Y/N for your own flags to show that it can still be done with whatever definition you want for your flags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 05:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143416#M589351</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-06T05:45:49Z</dc:date>
    </item>
    <item>
      <title>How to display multiple boolean dimensions along the X-axis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143417#M589352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is "Stacked" property on the Style tab for bar charts that will let you do this.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6131.Capture.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6131.Capture.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 05:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143417#M589352</guid>
      <dc:creator>sczetty</dc:creator>
      <dc:date>2009-05-06T05:47:36Z</dc:date>
    </item>
    <item>
      <title>How to display multiple boolean dimensions along the X-axis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143418#M589353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! This is slick! I thikn we're almost there. One thing though, your graph for the Chart solution has integer values 1,2,3,4,5 on the X-axis. Is there a way I can have text values instead? Like 'A','B','C','D','E' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 06:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143418#M589353</guid>
      <dc:creator />
      <dc:date>2009-05-06T06:13:17Z</dc:date>
    </item>
    <item>
      <title>How to display multiple boolean dimensions along the X-axis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143419#M589354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Certainly. The only extra bit is that the pick() function I used needs an integer, so we need to convert the text values from the dimension into integers. That's easily done with a match() function. Adjusted example above using the same names as the other graph. It could probably be just as easily done with a dual() function in the dimension, but I very routinely use pick(match(...),...), so I'll stick with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 06:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-multiple-boolean-dimensions-along-the-X-axis/m-p/143419#M589354</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-06T06:25:31Z</dc:date>
    </item>
  </channel>
</rss>

