<?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: How to combine values from the same column into one condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144696#M521356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I prefer &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/stalwar1"&gt;stalwar1&lt;/A&gt; &lt;/STRONG&gt;solution as simple to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open Bar chart properties. Right click on the chart &amp;gt; Properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Just in Calculated dimension write the expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Status = 'Won', 'Won Jobs', 'Other Jobs')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127158_Screenshot_2.png" style="height: 206px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Add in expression field this statement:&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;STRONG&gt;Count(Status)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_3.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/127159_Screenshot_3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2016 20:05:18 GMT</pubDate>
    <dc:creator>MindaugasBacius</dc:creator>
    <dc:date>2016-06-07T20:05:18Z</dc:date>
    <item>
      <title>How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144689#M521349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I've been working in QlikView for a while now. I have a question about a certain column I've been working with. I have a table called 'Jobs' that counts all the jobs my company's won for our client. One of the columns is Status. Status has three possible values: Lost, Won, and Inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been asked to create a bar chart that measures Won jobs vs the other two possible values (Lost and Inactive) by Salesperson. Can anyone help me with an expression I can use for this? I need to somehow combine Lost and Inactive Jobs into one bar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression would be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NumericCount(Status, if(Status === 'Lost' OR Status === 'Inactive), 'Other Jobs', 'Won Jobs')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't seem to be working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 17:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144689#M521349</guid>
      <dc:creator />
      <dc:date>2016-06-07T17:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144690#M521350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using a calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Status = 'Won', 'Won Jobs', 'Other Jobs')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 18:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144690#M521350</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-07T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144691#M521351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. But how can I implement this if I wanted to count the number of jobs? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried TextCount(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Status = 'Won', 'Won Jobs', 'Other Jobs')), and this didn't work. Any pointers for modifying it to work with TextCount?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 18:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144691#M521351</guid>
      <dc:creator />
      <dc:date>2016-06-07T18:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144692#M521352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use Count(Status) as your expression and &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Status = 'Won', 'Won Jobs', 'Other Jobs') &lt;/STRONG&gt; as your dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 18:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144692#M521352</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-07T18:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144693#M521353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127147_Capture.PNG" style="height: 170px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 19:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144693#M521353</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2016-06-07T19:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144694#M521354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, just like this! But how did you get this chart to pop up? What was the expression that you used? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 19:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144694#M521354</guid>
      <dc:creator />
      <dc:date>2016-06-07T19:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144695#M521355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached. !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions Used:&lt;/P&gt;&lt;P&gt;=Aggr(Count({$&amp;lt;Status={'Won'}&amp;gt;}Job),SalesPerson) - 'Won ' Jobs Count&lt;/P&gt;&lt;P&gt;=Aggr(Count({$&amp;lt;Status={'*'}-{'Won'}&amp;gt;}Job),SalesPerson) - 'Rest' Jobs Count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 19:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144695#M521355</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2016-06-07T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144696#M521356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I prefer &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/stalwar1"&gt;stalwar1&lt;/A&gt; &lt;/STRONG&gt;solution as simple to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open Bar chart properties. Right click on the chart &amp;gt; Properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Just in Calculated dimension write the expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Status = 'Won', 'Won Jobs', 'Other Jobs')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127158_Screenshot_2.png" style="height: 206px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Add in expression field this statement:&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;STRONG&gt;Count(Status)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_3.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/127159_Screenshot_3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 20:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144696#M521356</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-06-07T20:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144697#M521357</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;AFAIK,calculated dimensions usually have a big impact on performance (especially with huge data).&amp;nbsp; use of set analysis for restrictions over IF() stements &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;is recommended ,&lt;/SPAN&gt;especially in charts . &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 20:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144697#M521357</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2016-06-07T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144698#M521358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's true, then I would suggest creating a field in the script only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Status = 'Won', 'Won', 'Rest') as New_Status&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use New_Status as Dimension and Count(New_Status) as your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, I don't understand the usage of Aggr() in your solution. Why not just use these?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;Status={'Won'}&amp;gt;}Job)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;Status={'*'}-{'Won'}&amp;gt;}Job)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 20:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144698#M521358</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-07T20:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144699#M521359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the solution where script modifications are made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jobs:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt; If(Status = 'Won', 'Won', 'Rest') as New_Status;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Job,SalesPerson,Year,Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,AA,2014,Won&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2,AA,2014,Lost&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3,BB,2014,Won&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4,CC,2014,Inactive&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5,CC,2015,Won&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6,AA,2015,Lost&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7,CC,2015,Won&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8,BB,2016,Inactive&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 20:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144699#M521359</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-07T20:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine values from the same column into one condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144700#M521360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Yes this is the method(doing most part at the script level) that i would also prefer.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;using Aggr() -&amp;nbsp; i am grouping with respect to 'Sales person' else count funct returns other values depending on the selections made.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 20:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-values-from-the-same-column-into-one-condition/m-p/1144700#M521360</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2016-06-07T20:26:56Z</dc:date>
    </item>
  </channel>
</rss>

