<?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 function with multiple values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878753#M655486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;Kumar Rishikesh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;You can use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(match(A,'[00:30 hrs]','[01:00 hrs]','[01:30 hrs]') and B='Processed', 1,0) ) as C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but then you need to use groupby with respect too some field to get desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant P Baste&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 10:39:13 GMT</pubDate>
    <dc:creator>prashantbaste</dc:creator>
    <dc:date>2015-07-15T10:39:13Z</dc:date>
    <item>
      <title>IF function with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878751#M655484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use the below script while loading:&lt;/P&gt;&lt;P&gt;sum(if(match(A,'[00:30 hrs]','[01:00 hrs]','[01:30 hrs]') and B='Processed', 1,0) ) as C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, please suggest an alternative.&lt;/P&gt;&lt;P&gt;My requirement is to get the count of total records&amp;nbsp; in a field called C where&lt;/P&gt;&lt;P&gt;A=&lt;SPAN style="font-size: 13.3333330154419px;"&gt;00:30 hrs , 01:00 hrs , 01:30 hrs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;B=&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Processed&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rishikesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 10:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878751#M655484</guid>
      <dc:creator />
      <dc:date>2015-07-15T10:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: IF function with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878752#M655485</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;Try like this'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(match(A,'[00:30 hrs]','[01:00 hrs]','[01:30 hrs]') and B='Processed', 1,0)&amp;nbsp; as C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Then in front end, you can use Sum(C)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 10:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878752#M655485</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-07-15T10:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: IF function with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878753#M655486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;Kumar Rishikesh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;You can use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(match(A,'[00:30 hrs]','[01:00 hrs]','[01:30 hrs]') and B='Processed', 1,0) ) as C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but then you need to use groupby with respect too some field to get desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant P Baste&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 10:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878753#M655486</guid>
      <dc:creator>prashantbaste</dc:creator>
      <dc:date>2015-07-15T10:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: IF function with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878754#M655487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tha nks Mayil and Prasant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 11:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-function-with-multiple-values/m-p/878754#M655487</guid>
      <dc:creator />
      <dc:date>2015-07-15T11:01:09Z</dc:date>
    </item>
  </channel>
</rss>

