<?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: Help plotting bar chart when an item is appears in two bars in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922457#M981306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2015 09:57:10 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-08-13T09:57:10Z</dc:date>
    <item>
      <title>Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922454#M981303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm new to QlickView and was looking for some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two columns of data, black_or_white and cat_or_dog.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Animal_ID&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;black_or_white&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;cat_or_dog&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Animal_1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;black&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;dog&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Animal_2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;white&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;dog&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Animal_3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;black&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;cat&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the same bar chart id like to plot a bar for the amount of dogs, a bar for the amount of black dogs, a bar for the amount of cats, and a bar for the amount of black cats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to plot the amount of cats v dogs by having animals at the dimension and count(animals) as the expression. I have also managed to plot amount of white dogs, amount of black dogs, amount of white cats, amount of black cats using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(cat_or_dog = cat, if(black_or_white = white, 'white cat', 'black cat'), if(black_or_white = white, 'white dog', 'black dog') as the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But neither of these things is what i want. i want a bar for amount of dogs, and a bar for amount of black dogs....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922454#M981303</guid>
      <dc:creator />
      <dc:date>2015-08-13T09:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922455#M981304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very confusing... I think you have to use Total Qualifier (may be)...!&lt;/P&gt;&lt;P&gt;Better if you can provide the result you are looking for based on sample table given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922455#M981304</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-13T09:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922456#M981305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks a lot for the reply. for the above example id like dogs = 2, black dogs = 1, cats = 1, black cats = 1.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="catsDogs.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95919_catsDogs.jpg" style="height: 380px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922456#M981305</guid>
      <dc:creator />
      <dc:date>2015-08-13T09:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922457#M981306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922457#M981306</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-13T09:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922458#M981307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 10:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922458#M981307</guid>
      <dc:creator>kavita25</dc:creator>
      <dc:date>2015-08-13T10:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922459#M981308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! that will do. thanks very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 10:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922459#M981308</guid>
      <dc:creator />
      <dc:date>2015-08-13T10:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922460#M981309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Manish thanks for your help.I'm nearly there.&lt;/P&gt;&lt;P&gt;Can you explain to me whats going on with the:&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;something = {'something'}&amp;gt;}DISTINCT [ID]) notation.&lt;/P&gt;&lt;P&gt;basically I simplified my data to try and explain it. What i want is instead of checking if a dog is black i want to check if the field is null. but i cant work out how to get the IsNull(field) to work in the expression you gave me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 11:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922460#M981309</guid>
      <dc:creator />
      <dc:date>2015-08-13T11:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922461#M981310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COUNT({&amp;lt;something = {'something'}&amp;gt;}DISTINCT [ID]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COUNT(DISTINCT ID) will count all Distinct ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;something = {'something'}&amp;gt;} This is set analysis which will work as a filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;so&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;Month = {'March'}&amp;gt;} will give you result where month = March...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Say... SUM(If(Month = 'March',Sales)) = SUM({&amp;lt;Month = {'March'}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;For Null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT({&amp;lt;cat_or_dog = {'dog'}, black_or_white = {'=Len(trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;black_or_white))=0&lt;/SPAN&gt;'}&amp;gt;}DISTINCT Animal_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 11:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922461#M981310</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-13T11:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922462#M981311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you can use below&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;cat_or_dog = {'dog'}&amp;gt;}DISTINCT IF(IsNull(black_or_white),Animal_ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 11:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922462#M981311</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-13T11:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922463#M981312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation makes sense now. can get the&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;cat_or_dog = {'dog'}&amp;gt;}DISTINCT IF(IsNull(black_or_white),Animal_ID))&lt;/P&gt;&lt;P&gt;to work though. Ive swapped my variable names in, only difference i can see is that my field name is [black or white].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also how would i check for not null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 11:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922463#M981312</guid>
      <dc:creator />
      <dc:date>2015-08-13T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922464#M981313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i didn't see your second comment. that second expression worked. thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 11:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922464#M981313</guid>
      <dc:creator />
      <dc:date>2015-08-13T11:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help plotting bar chart when an item is appears in two bars</title>
      <link>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922465#M981314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please close the thread by selecting correct answer...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 11:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-plotting-bar-chart-when-an-item-is-appears-in-two-bars/m-p/922465#M981314</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-13T11:48:14Z</dc:date>
    </item>
  </channel>
</rss>

