<?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: if expression looking at multiple dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/if-expression-looking-at-multiple-dimensions/m-p/2480019#M100645</link>
    <description>&lt;P&gt;Unless I do not know something new in Qlik, you need to create a nested if statement to use multiple values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like in this post.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Analytics/Nested-IF-Statements/td-p/1022597" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-Qlik-Analytics/Nested-IF-Statements/td-p/1022597&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also use the Match expression instead, which is more efficient.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/If-statements-for-multiple-values/td-p/659682" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/If-statements-for-multiple-values/td-p/659682&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, this should work:&lt;/P&gt;
&lt;P&gt;if(match([Ship Method],'FEDEX-Air-International Priority','FEDEX-Air-International Priority Late Day','FEDEX-Air-Next Day Air Early AM','FEDEX-Air-Priority Field Engineer','FEDEX-Air-Priority Overnight','FEDEX-Air-Standard Overnight','FEDEX-AIRHAZ-Priority Overnight','FEDEX-AIRHAZ-Standard Overnight','FEDEX-GROUND-Standard'),'Freight','Parcel')&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2024 19:21:59 GMT</pubDate>
    <dc:creator>datagrrl</dc:creator>
    <dc:date>2024-09-05T19:21:59Z</dc:date>
    <item>
      <title>if expression looking at multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/if-expression-looking-at-multiple-dimensions/m-p/2480012#M100644</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to use an IF expression to look at a list of ship methods and if its on the list return 'Parcel' and if not 'Freight' when I use the expression below it always says 'Freight'.&amp;nbsp; I tried doing a "Match" but I could not get the expression to work.&amp;nbsp; &amp;nbsp;What am I missing?&lt;/P&gt;
&lt;P&gt;=if([Ship Method]='FEDEX-Air-International Priority''FEDEX-Air-International Priority Late Day''FEDEX-Air-Next Day Air Early AM''FEDEX-Air-Priority Field Engineer''FEDEX-Air-Priority Overnight''FEDEX-Air-Standard Overnight''FEDEX-AIRHAZ-Priority Overnight''FEDEX-AIRHAZ-Standard Overnight''FEDEX-GROUND-Standard','Package','Freight')&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 18:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-expression-looking-at-multiple-dimensions/m-p/2480012#M100644</guid>
      <dc:creator>baderbd</dc:creator>
      <dc:date>2024-09-05T18:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: if expression looking at multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/if-expression-looking-at-multiple-dimensions/m-p/2480019#M100645</link>
      <description>&lt;P&gt;Unless I do not know something new in Qlik, you need to create a nested if statement to use multiple values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like in this post.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Analytics/Nested-IF-Statements/td-p/1022597" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-Qlik-Analytics/Nested-IF-Statements/td-p/1022597&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also use the Match expression instead, which is more efficient.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/If-statements-for-multiple-values/td-p/659682" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/If-statements-for-multiple-values/td-p/659682&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, this should work:&lt;/P&gt;
&lt;P&gt;if(match([Ship Method],'FEDEX-Air-International Priority','FEDEX-Air-International Priority Late Day','FEDEX-Air-Next Day Air Early AM','FEDEX-Air-Priority Field Engineer','FEDEX-Air-Priority Overnight','FEDEX-Air-Standard Overnight','FEDEX-AIRHAZ-Priority Overnight','FEDEX-AIRHAZ-Standard Overnight','FEDEX-GROUND-Standard'),'Freight','Parcel')&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 19:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-expression-looking-at-multiple-dimensions/m-p/2480019#M100645</guid>
      <dc:creator>datagrrl</dc:creator>
      <dc:date>2024-09-05T19:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: if expression looking at multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/if-expression-looking-at-multiple-dimensions/m-p/2480023#M100646</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/289512"&gt;@baderbd&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Returning to using Match as mentioned. See it like this:&lt;BR /&gt;With the Match function, you will be able to list multiple values ​​that exist in the field in question, but they need to be separated by , and quotation marks ‘’ (‘as it is a textual value’). The syntax should look like this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if(Match([Ship Method],'FEDEX-Air-International Priority',&lt;BR /&gt;'FEDEX-Air-International Priority Late Day',&lt;BR /&gt;'FEDEX-Air-Next Day Air Early AM',&lt;BR /&gt;'FEDEX-Air-Priority Field Engineer',&lt;BR /&gt;'FEDEX-Air-Priority Overnight',&lt;BR /&gt;'FEDEX-Air-Standard Overnight',&lt;BR /&gt;'FEDEX-AIRHAZ-Priority Overnight',&lt;BR /&gt;'FEDEX-AIRHAZ-Standard Overnight',&lt;BR /&gt;'FEDEX-GROUND-Standard'),'Package','Freight')&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/match.htm#:~:text=The%20match%20function%20compares%20the,The%20comparison%20is%20case%20sensitive.&amp;amp;text=If%20you%20want%20to%20use,comparison%2C%20use%20the%20mixmatch%20function" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/match.htm#:~:text=The%20match%20function%20compares%20the,The%20comparison%20is%20case%20sensitive.&amp;amp;text=If%20you%20want%20to%20use,comparison%2C%20use%20the%20mixmatch%20function&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;- Regards ,&amp;nbsp; Matheus&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 19:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-expression-looking-at-multiple-dimensions/m-p/2480023#M100646</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-09-05T19:08:05Z</dc:date>
    </item>
  </channel>
</rss>

