<?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 do I remove the false option within an If Statement? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451395#M818444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need to specify an "else" condition in QlikView. If you do not it will have a "null" value instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be the same as changing "Other" for "null()":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If([Inventory Type]='E1 Finished Goods','Finished',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If([Inventory Type]='E1 Raw Materials','Raw',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If([Inventory Type]='E1 In Process','WIP',null())&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) as [Inventory Group]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You would need to check the properties of your chart to make sure that null values are being hidden (In the Dimensions tab make sure "Suppress Null Values" is ticked for Inventory Group).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The one advantage of Marcus' solution though is that you will be able to select "Other" as a value, whereas if it is null then you can't select it.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 15:24:10 GMT</pubDate>
    <dc:creator>chris_johnson</dc:creator>
    <dc:date>2017-08-23T15:24:10Z</dc:date>
    <item>
      <title>How do I remove the false option within an If Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451392#M818441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on pulling through some stock data (see script below) from our ERP systems. I wanted to create an easy group within the transform so I can just pull through the 'Inventory group' to display individual values of Finish, Raw, WIP goods. However as with any if statement it requires a false option of Other. At the moment this is making my graphs look untidy as there is a value of 'zero' and 'negative zero' as Other, displayed on my pie chart and line chart. Is there any way to block out the false or Other option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([Inventory Type]='E1 Finished Goods','Finished',&lt;/P&gt;&lt;P&gt;If([Inventory Type]='E1 Raw Materials','Raw',&lt;/P&gt;&lt;P&gt;If([Inventory Type]='E1 In Process','WIP','Other')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;) as [Inventory Group]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451392#M818441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove the false option within an If Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451393#M818442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming here that the [Inventory Group] field is being created in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To filter it from your charts, use set analysis. For example, if you have a sum of Sales measure, express it like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Inventory Group]-={'Other'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451393#M818442</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-08-23T15:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove the false option within an If Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451394#M818443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every &lt;SPAN style="font-family: 'courier new', courier;"&gt;IF()&lt;/SPAN&gt; call can be supplied with only two parameters (a logical expression and a True-value)&lt;/P&gt;&lt;P&gt;If in your example you omit the 'Other' value altogether, three failing IFs will result in a NULL value being stored in field &lt;SPAN style="font-family: 'courier new', courier;"&gt;[Inventory Group]&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A bar chart or a straight table can be told to "forget" about these NULL dimension values, i.e. not include them in the display. Is that what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451394#M818443</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-08-23T15:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove the false option within an If Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451395#M818444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need to specify an "else" condition in QlikView. If you do not it will have a "null" value instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be the same as changing "Other" for "null()":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If([Inventory Type]='E1 Finished Goods','Finished',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If([Inventory Type]='E1 Raw Materials','Raw',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If([Inventory Type]='E1 In Process','WIP',null())&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) as [Inventory Group]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You would need to check the properties of your chart to make sure that null values are being hidden (In the Dimensions tab make sure "Suppress Null Values" is ticked for Inventory Group).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The one advantage of Marcus' solution though is that you will be able to select "Other" as a value, whereas if it is null then you can't select it.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451395#M818444</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2017-08-23T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove the false option within an If Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451396#M818445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use pick match combination&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pick (Match ([Inventory Type],'E1 Finished Goods', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 39.7562px;"&gt;E1 Raw Materials&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 39.7562px;"&gt;E1 In Process'),'Finished','&lt;/SPAN&gt;&lt;SPAN style="font-size: 28.6924px;"&gt;Raw',&lt;/SPAN&gt;&lt;SPAN style="font-size: 28.6924px;"&gt;WIP')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 28.6924px;"&gt; as [Inventory Group]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 18:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-remove-the-false-option-within-an-If-Statement/m-p/1451396#M818445</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-23T18:07:49Z</dc:date>
    </item>
  </channel>
</rss>

