<?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: Expression using multiple text conditions in a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-using-multiple-text-conditions-in-a-chart/m-p/1754441#M719394</link>
    <description>&lt;P&gt;Thank you, that's great&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2020 11:50:31 GMT</pubDate>
    <dc:creator>cooksa</dc:creator>
    <dc:date>2020-10-21T11:50:31Z</dc:date>
    <item>
      <title>Expression using multiple text conditions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-using-multiple-text-conditions-in-a-chart/m-p/1754391#M719392</link>
      <description>&lt;P&gt;There are 4 text values: A, B, C and D for the field [Current Status]&lt;/P&gt;&lt;P&gt;In a bar chart I'm trying to combine the text values of those with A or B to be shown as 'Both' but also show those that have only A as 'Just A', which is where I'm having issues, examples of expressions below.&lt;/P&gt;&lt;P&gt;=if([Current Status]='A' OR [Current Status]='B','Both',if([Current Status]= 'A','Just A',[Current Status]))&lt;BR /&gt;//correct for Both but doesn't show Just A&amp;nbsp;&lt;/P&gt;&lt;P&gt;//if([Current Status]= 'A','Just A',if(([Current Status]='A' OR [Current Status]='B'),'Both',[Current Status]))&lt;BR /&gt;//correct for Just A but Both only displays the number in B and not the combined total&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-using-multiple-text-conditions-in-a-chart/m-p/1754391#M719392</guid>
      <dc:creator>cooksa</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression using multiple text conditions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-using-multiple-text-conditions-in-a-chart/m-p/1754400#M719393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/128117"&gt;@cooksa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;BR /&gt;&lt;BR /&gt;Create dummy field in script&lt;/P&gt;&lt;P&gt;Dummy:&lt;BR /&gt;&lt;STRONG&gt;Load * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;Current Status&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;C&lt;BR /&gt;D&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;In Bar chart, try with below expression and check the "Suppress When Value is Null".&lt;/P&gt;&lt;P&gt;=if(Dim = 1, If([Current Status]='A' OR [Current Status]='B','Both'),if([Current Status]= 'A','Just A',[Current Status]))&lt;/P&gt;&lt;P&gt;Sample output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayilvahanan_0-1603274212162.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42706i4980DAC4EE765B77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayilvahanan_0-1603274212162.png" alt="mayilvahanan_0-1603274212162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 09:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-using-multiple-text-conditions-in-a-chart/m-p/1754400#M719393</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-10-21T09:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression using multiple text conditions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-using-multiple-text-conditions-in-a-chart/m-p/1754441#M719394</link>
      <description>&lt;P&gt;Thank you, that's great&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 11:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-using-multiple-text-conditions-in-a-chart/m-p/1754441#M719394</guid>
      <dc:creator>cooksa</dc:creator>
      <dc:date>2020-10-21T11:50:31Z</dc:date>
    </item>
  </channel>
</rss>

