<?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: WHERE function with multiple values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412435#M94737</link>
    <description>&lt;P&gt;may be this..&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;WHERE [LVL_DETAILED]='F-FIFER' and (match(ACAD_SESSION,'2017/18','2018/19','2019/20','2021/22','2022/23')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and not match(SCHOOL,'AbLE','S5'));&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 10:01:24 GMT</pubDate>
    <dc:creator>Nagaraju_KCS</dc:creator>
    <dc:date>2024-01-30T10:01:24Z</dc:date>
    <item>
      <title>WHERE function with multiple values</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412418#M94734</link>
      <description>&lt;P&gt;Hoping someone can help. I've included a WHERE clause I'm trying to add to our ETL staging app for one of our student number reporting apps. Code is included below. Basically I'm trying to exclude students with a LVL_DETAILED value of 'F-FIFER' from the ACAD_SESSION between 2017/18-2022/23 (I'd like to retain all other students in those years), BUT I'd also like to exclude students with a SCHOOL value of AbLE and S5 across all years.&lt;/P&gt;
&lt;P&gt;WHERE ([LVL_DETAILED]='F-FIFER' and match(ACAD_SESSION,'2017/18','2018/19','2019/20','2021/22','2022/23'))&lt;BR /&gt;or not match(SCHOOL,'AbLE','S5');&lt;/P&gt;
&lt;P&gt;Currently the code excludes all students from with an ACAD_SESSION between 2017/18-2022/23.&lt;/P&gt;
&lt;P&gt;Any help would be most appreciated.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 09:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412418#M94734</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2024-01-30T09:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE function with multiple values</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412432#M94735</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47147"&gt;@mattphillip&lt;/a&gt;&amp;nbsp;I would prefer like below for last condition.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; match(SCHOOL,'AbLE','S5'); // Note, Here I removed "OR" and "Not"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 09:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412432#M94735</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-30T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE function with multiple values</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412435#M94737</link>
      <description>&lt;P&gt;may be this..&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;WHERE [LVL_DETAILED]='F-FIFER' and (match(ACAD_SESSION,'2017/18','2018/19','2019/20','2021/22','2022/23')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and not match(SCHOOL,'AbLE','S5'));&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 10:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412435#M94737</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2024-01-30T10:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE function with multiple values</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412446#M94739</link>
      <description>&lt;P&gt;Hi Anil,&lt;/P&gt;
&lt;P&gt;Thanks for the suggestion. Unfortunately that didn't load any records to the front end. I realise my script quoted is wrong as I'm trying to exclude these records not include them. It should read:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;WHERE (not match([LVL_DETAILED]='F-FIFER') and not match(ACAD_SESSION,'2017/18','2018/19','2019/20','2021/22','2022/23'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or not match(SCHOOL,'AbLE','S5');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;But this script filters out all the years between 2017/18 and 2022/23 for all students and not just for those students with a LVL_DETAILED value of 'F-FIFER'.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 10:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412446#M94739</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2024-01-30T10:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE function with multiple values</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412449#M94740</link>
      <description>&lt;P&gt;Thanks for the reply. Unfortunately that didn't work either. My current attempt is the below:&lt;/P&gt;
&lt;P&gt;WHERE (not match([LVL_DETAILED],'F-FIFER') and not match(ACAD_SESSION,'2017/18','2018/19','2019/20','2021/22','2022/23'))&lt;BR /&gt;or not match(SCHOOL,'AbLE','S5');&lt;/P&gt;
&lt;P&gt;However, I still have the problem that its excluding those five years for all students.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 10:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2412449#M94740</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2024-01-30T10:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE function with multiple values</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2413051#M94817</link>
      <description>&lt;P&gt;It's not really clear for me what do you want to filter but chaining multiple conditions with extra NOT statements is rather not expedient - probably possible but more complex as sensible. Simpler are often approaches like:&lt;/P&gt;
&lt;P&gt;rangesum(&lt;BR /&gt;sign&lt;SPAN&gt;(match([LVL_DETAILED],'F-FIFER')), sign(match(ACAD_SESSION,'2017/18','2018/19','2019/20','2021/22','2022/23')),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sign(match(SCHOOL,'AbLE','S5'))) &amp;gt;= CheckValue&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or maybe&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(sign(match([LVL_DETAILED],'F-FIFER')) * sign(match(ACAD_SESSION,'2017/18','2018/19','2019/20','2021/22','2022/23'))) +&amp;nbsp;&lt;BR /&gt;sign(match(SCHOOL,'AbLE','S5'))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 13:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-function-with-multiple-values/m-p/2413051#M94817</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-01-31T13:11:30Z</dc:date>
    </item>
  </channel>
</rss>

