<?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: Bar Chart with conditional expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422059#M570036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I have constructed the expression as you suggested, but I'm using a 'Word' instead of 'TRUE'. Problem is when I do this I get no value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I found a "hack" way to do it via bookmarks. First i created a selection for the value in the reference column, then bookmarked it and then using the expression Count ({BOOKMARK} COLUMN_TO_BE_COUNTED) I got the result I wanted, but it seems kind of messy :S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could I be doing wrong with the expression you specified?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 10:38:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-17T10:38:50Z</dc:date>
    <item>
      <title>Bar Chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422053#M570030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am kind of new to Qlikview, so forgive me if this question is something I should know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a Bar chart which counts the different values in a column, but I only want to count the values in this column if another column in the same row has a spesific value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 07:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422053#M570030</guid>
      <dc:creator />
      <dc:date>2012-10-17T07:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422054#M570031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can use set analysis&lt;/P&gt;&lt;P&gt;as &lt;/P&gt;&lt;P&gt;count({$&amp;lt;Coulunn2=''&amp;gt;}column1)&lt;/P&gt;&lt;P&gt;Try it or vie set analysis document in the community document available as pdf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 07:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422054#M570031</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2012-10-17T07:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422055#M570032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do I put this expression? I tried to put it in definition, but then I get no value in my bar chart. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 07:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422055#M570032</guid>
      <dc:creator />
      <dc:date>2012-10-17T07:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422056#M570033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;You have to put the expression in your expression's page..and not on edit dimension.. if you are not comfortable using set analysis..then please make use of the normal if condition.. like--sum(if(country='MEXICO',sales))... try out this sort of expression and you will land in getting the correct values.. however this could make your bar chart a bit heavy..means it will take a bit time to open up&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 07:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422056#M570033</guid>
      <dc:creator />
      <dc:date>2012-10-17T07:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422057#M570034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I have done the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created a new expression on the bar chart object. with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #800000; font-size: 8pt;"&gt;referencing column&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='&lt;STRONG&gt;&lt;EM&gt;the value of this column that has to be true for the value to be counted&lt;/EM&gt;&lt;/STRONG&gt;'&amp;gt;}&lt;STRONG&gt;&lt;EM&gt;column that is counted&lt;/EM&gt;&lt;/STRONG&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;is this correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 08:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422057#M570034</guid>
      <dc:creator />
      <dc:date>2012-10-17T08:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422058#M570035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you are moving correctly.. don't put the dollar sign.. are using some variables.. keep things simple.. count(if(referenceColumn='TRUE',Column_To_Counted))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 10:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422058#M570035</guid>
      <dc:creator />
      <dc:date>2012-10-17T10:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422059#M570036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I have constructed the expression as you suggested, but I'm using a 'Word' instead of 'TRUE'. Problem is when I do this I get no value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I found a "hack" way to do it via bookmarks. First i created a selection for the value in the reference column, then bookmarked it and then using the expression Count ({BOOKMARK} COLUMN_TO_BE_COUNTED) I got the result I wanted, but it seems kind of messy :S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could I be doing wrong with the expression you specified?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 10:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422059#M570036</guid>
      <dc:creator />
      <dc:date>2012-10-17T10:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422060#M570037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, ok if you got the result using BOOKMARK.. that way is also correct.. but why to make things complicated.. you need not use 'TRUE'&amp;nbsp; as that was only an example.. instead use the value you need to validate against that particular field.. use the expression I suggested and put the value you require to validate in place of TRUE.. when you achieve this then gradually start using set analysis further in your expression.. I hope you must have understood my point.. Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 12:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Chart-with-conditional-expression/m-p/422060#M570037</guid>
      <dc:creator />
      <dc:date>2012-10-17T12:13:38Z</dc:date>
    </item>
  </channel>
</rss>

