<?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: Nasted IF statement for create filtering button with groups of orders in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102057#M12571</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best way to do that is the mapping table and the applymap function.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Mapping.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Mapping.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example :&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;_map:
Mapping Load
  *
Inline [
  Order_Type__c, TypeFlg
  100, Project Order Types
  108, Project Order Types
  102, Project No-Order Types
  502, Project Order Cther Types
];

Load
  *,
  ApplyMap('_map', Order_Type__c, 'Other) as [Order Type Flag]
From file
;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 03 Aug 2023 11:39:35 GMT</pubDate>
    <dc:creator>Aurelien_Martinez</dc:creator>
    <dc:date>2023-08-03T11:39:35Z</dc:date>
    <item>
      <title>Nasted IF statement for create filtering button with groups of orders</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102023#M12568</link>
      <description>&lt;P&gt;I have to create &amp;nbsp;filtering button with groups of orders. It should be called 'Order Type Flag':&lt;/P&gt;
&lt;P&gt;FIRST bucket L100','108','120','125','150' should be&amp;nbsp;'Project Order Types',&lt;/P&gt;
&lt;P&gt;SECOND BUCKET:&amp;nbsp;102','105','103','155,'126,'107,'106','130','110','300' should be called 'Project No-Order Types'&lt;/P&gt;
&lt;P&gt;THIRD BUCKET:,'SA','202','201','501','203','600','-','800','500','250','502' should be called 'Project Order Cther Types'&lt;/P&gt;
&lt;P&gt;I tried with nasted IF statement as below but it do not works and show me in filter only one bucket.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please support me.&lt;/P&gt;
&lt;P&gt;if(match("Order_Type__c",'100','108','120','125','150'), &lt;BR /&gt;if(match("Order_Type__c",'102','105','103','155,'126,'107,'106','130','110','300'), &lt;BR /&gt;'Project Order Types',&lt;BR /&gt;if(match("Order_Type__c",'SA','202','201','501','203','600','-','800','500','250','502'),'Project No-Order Types','Project Order Cther Types'))) as 'Order Type Flag',&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 10:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102023#M12568</guid>
      <dc:creator>SingSing16</dc:creator>
      <dc:date>2023-08-03T10:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nasted IF statement for create filtering button with groups of orders</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102027#M12569</link>
      <description>&lt;P&gt;That statement doesn't seem to make much sense as it's written. No row is ever going to match the first set of conditions because they're mutually exclusive.&lt;/P&gt;
&lt;P&gt;You would want to use:&lt;/P&gt;
&lt;P&gt;If(Match(FirstBucketHere),'Bucket1',&lt;/P&gt;
&lt;P&gt;If(Match(SecondBucketHere),'Bucket2',&lt;/P&gt;
&lt;P&gt;If(Match(ThirdBucketHere),'Bucket3','Others')))&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 10:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102027#M12569</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-08-03T10:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Nasted IF statement for create filtering button with groups of orders</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102029#M12570</link>
      <description>&lt;P&gt;Try below.&lt;/P&gt;
&lt;P&gt;if(&lt;BR /&gt;match("Order_Type__c", '100','108','120','125','150'),&lt;BR /&gt;'Project Order Types',&lt;BR /&gt;if(&lt;BR /&gt;match("Order_Type__c", '102','105','103','155','126','107','106','130','110','300'),&lt;BR /&gt;'Project No-Order Types',&lt;BR /&gt;if(&lt;BR /&gt;match("Order_Type__c", 'SA','202','201','501','203','600','-','800','500','250','502'),&lt;BR /&gt;'Project Other Types',&lt;BR /&gt;'Other'&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;) as [Order Type Flag]&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 10:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102029#M12570</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-08-03T10:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Nasted IF statement for create filtering button with groups of orders</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102057#M12571</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best way to do that is the mapping table and the applymap function.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Mapping.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Mapping.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example :&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;_map:
Mapping Load
  *
Inline [
  Order_Type__c, TypeFlg
  100, Project Order Types
  108, Project Order Types
  102, Project No-Order Types
  502, Project Order Cther Types
];

Load
  *,
  ApplyMap('_map', Order_Type__c, 'Other) as [Order Type Flag]
From file
;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Aug 2023 11:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Nasted-IF-statement-for-create-filtering-button-with-groups-of/m-p/2102057#M12571</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2023-08-03T11:39:35Z</dc:date>
    </item>
  </channel>
</rss>

