<?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: Match function issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082844#M641818</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 have attached two tables clearing all the selections. The one on left is what you proposed and Implemented in straight table taking the Rcode as Dimension and Count(%VBELNPOSNR) as expression. The values are still not correct. The one on the right is what I did earlier using the "IF" condition I have used earlier in the straight table&amp;nbsp; as Calculated Dimension and Expression as count(%VBELNPOSNR) which is giving the results as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113160_Capture.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2016 10:13:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-01T10:13:43Z</dc:date>
    <item>
      <title>Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082828#M641802</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;I am using Match function to retrieve a certain result which is working fine in the UI, but when I use the same in script, I am not getting the same result. I have used the following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Match(DISMM,'VR','V1','ZA','ZD')=0,'Not_Stocked','Not_ClosestPlant')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DISMM is a field that contains the values,VR,V1,ZA,ZD,ND,PD,X0,Z1. When I used the expression in a list box under Expression. When I&amp;nbsp; select&amp;nbsp; Stocked or Not_&lt;SPAN style="font-size: 13.3333px;"&gt;ClosestPlant&lt;/SPAN&gt;,the resultant DISMM values are getting selected, but with script, that is not happening.Can anyone please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082828#M641802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-27T14:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082829#M641803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample where it isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 15:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082829#M641803</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T15:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082830#M641804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be working here using this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Match(DISMM,'VR','V1','ZA','ZD')=0,'Not_Stocked','Not_ClosestPlant') as New_Dim;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISMM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;X0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Z1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112690_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 15:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082830#M641804</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T15:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082831#M641805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the script is executing without failure and the field produced contains both Not_Stoked and Not_ClosestPlant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case I suspect that wherever you're calculating this new field it is not correctly associated to DISMM in the data model. You could verify this in the table viewer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 15:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082831#M641805</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2016-01-27T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082832#M641806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Here is the complete script that I have been using. The bold part is where I am having the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RCode:&lt;/P&gt;&lt;P&gt;Load %VBELNPOSNR,&lt;/P&gt;&lt;P&gt;if(PSTYV='TAB' OR PSTYV='TABN','0 – CrossDock',If(LIPS_WERKS=[WH Code 1],'1 – Cust_Geo_Prime',if(LIPS_WERKS='8041' or&lt;/P&gt;&lt;P&gt;LIPS_WERKS='8042'or LIPS_WERKS='8043'or LIPS_WERKS='8044' or LIPS_WERKS='8615','2 – Sci_Ed',&lt;/P&gt;&lt;P&gt;if(LIPS_WERKS='8031' or LIPS_WERKS='8032','3 – Furniture',&lt;/P&gt;&lt;P&gt;if(LIPS_WERKS='8033' or LIPS_WERKS='8035','4 – Export',&lt;/P&gt;&lt;P&gt;if(LIPS_WERKS='8036' or LIPS_WERKS='8037','5 – Seradigm',if(LIPS_WERKS &amp;lt;&amp;gt; [WH Code 1] AND LIPS_WERKS &amp;lt;&amp;gt; [WH Code 2] AND&lt;/P&gt;&lt;P&gt;LIPS_WERKS &amp;lt;&amp;gt; [WH Code 3] and LIPS_WERKS &amp;lt;&amp;gt; [WH Code 4] and LIPS_WERKS &amp;lt;&amp;gt; [WH Code 5] and&lt;/P&gt;&lt;P&gt;LIPS_WERKS &amp;lt;&amp;gt; [WH Code 6] and&lt;/P&gt;&lt;P&gt;LIPS_WERKS &amp;lt;&amp;gt; '8031' and LIPS_WERKS &amp;lt;&amp;gt; '8032' and LIPS_WERKS &amp;lt;&amp;gt; '8033' and LIPS_WERKS &amp;lt;&amp;gt; '8036' and LIPS_WERKS &amp;lt;&amp;gt; '8037'&lt;/P&gt;&lt;P&gt;and LIPS_WERKS &amp;lt;&amp;gt; '8041' and LIPS_WERKS &amp;lt;&amp;gt; '8042' and LIPS_WERKS &amp;lt;&amp;gt; '8043' and LIPS_WERKS &amp;lt;&amp;gt; '8044'&lt;/P&gt;&lt;P&gt;&amp;nbsp; and LIPS_WERKS &amp;lt;&amp;gt; '8615' ,'6 – AWS_Override',if(%KNMTWERKS=LIPS_WERKS,'7 – Per_InfoRec',if(CLSTK_PLANT=LIPS_WERKS,'8 – Closest_StkPlnt',&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; &lt;SPAN style="font-size: 12pt;"&gt; &lt;STRONG&gt;if(Match(DISMM,'VR','V1','ZA','ZD')=0, '9-Not_Stocked', &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp; '10 – Not_Closest_StkPlnt'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;)))))))))) AS ReasonCode&lt;/P&gt;&lt;P&gt;Resident Delivery;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the selections screenshots of the Reason codes and their possible selections of DISMM when the above'IF' statement expression is used in UI and script. It shows that the script loaded expression is not selecting the relevant DISMM values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082832#M641806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-27T16:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082833#M641807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your screenshots, it looks to me like the script created "ReasonCode=Not_Stocked" is associating with the relevant DISMM values,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the question why the listbox created with &amp;lt;Expression&amp;gt; makes actual selections (green) in the DISMM field and the script field does not? The selection is a side effect of using &amp;lt;Expression&amp;gt;. Normal behavior of selecting one field is to associate, not select other fields. You can modify this behavior, see:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2016/01/scoping-selections-with-aggr/" title="http://qlikviewcookbook.com/2016/01/scoping-selections-with-aggr/"&gt;Scoping Selections with Aggr() | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 17:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082833#M641807</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-01-27T17:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082834#M641808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;I have attached the UI screenshot only to refer that the possibility of the selections is correct in the UI whereas in the script it is not giving the possible values in correct format which usually should happen by showing in White when loaded from script. My requirement to show to the selections even when loading through script is to get the correct count of keys associated to these selections. Only when the possible selections are made am I getting the correct count of the required keys which is not happening when loaded through Script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 17:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082834#M641808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-27T17:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082835#M641809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your listbox expression contain the same large if() as the script? And they are returning different results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 18:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082835#M641809</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-01-27T18:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082836#M641810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we would need to look at the data model and at the script sequence to understand if the two large if() statements are really equivalent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 19:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082836#M641810</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-27T19:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082837#M641811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 08:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082837#M641811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082838#M641812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA Datamodel and Expression in List Box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DM.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112810_DM.PNG" style="height: 287px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Expr.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/112814_Expr.PNG" style="height: 227px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 08:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082838#M641812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T08:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082839#M641813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be worth checking the uniqueness of your key %VBELNPOSNR with respect to DISMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one %VBELNPOSNR has multiple records with different DISMM then you will end up with multiple entries in RCode for the same %&lt;SPAN style="font-size: 13.3333px;"&gt;VBELNPOSNR but with&lt;/SPAN&gt; both '9-Not_Stocked' and '10 - Not_Closest_StkPlnt' and so filtering on either will not exclude all the records you expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be the case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082839#M641813</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2016-01-28T10:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082840#M641814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Dominic, That is the case, but isn't there a way to show only those needed as possible selections when either &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;'9-Not_Stocked' or '10 - Not_Closest_StkPlnt' is selected and filter out the unwanted.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 16:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082840#M641814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T16:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082841#M641815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, If there are &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;%VBELNPOSNRs that have only one ReasonCode then I would expect those to be filtered out when you select the other ReasonCode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create a straight table with RCode.ReasonCode as the dimension and count(DISTINCT [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;%VBELNPOSNR]&lt;/SPAN&gt;) as the measure and clear all filters then does it show different counts against '9-...' and '10-...'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 16:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082841#M641815</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2016-01-28T16:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082842#M641816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Apart from making any changes like the ones you said using in straight table, isn't there a way to do the same in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 09:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082842#M641816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-29T09:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082843#M641817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Ah, I was proposing the straight table as a test only, not as a solution. Could you post a screenshot of the table with all selections cleared? That might help get to the bottom of this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 10:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082843#M641817</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2016-01-30T10:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082844#M641818</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 have attached two tables clearing all the selections. The one on left is what you proposed and Implemented in straight table taking the Rcode as Dimension and Count(%VBELNPOSNR) as expression. The values are still not correct. The one on the right is what I did earlier using the "IF" condition I have used earlier in the straight table&amp;nbsp; as Calculated Dimension and Expression as count(%VBELNPOSNR) which is giving the results as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113160_Capture.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082844#M641818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-01T10:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082845#M641819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you comparing a Count(DISTINCT Field) with a Count(Field)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082845#M641819</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-01T10:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082846#M641820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whoops...My bad,&lt;/P&gt;&lt;P&gt;Now that I changed the expression without using Distinct, the values are matching in both the tables. Thanks swuehl and Dominic. But the issue is still the same, I need to get the same values by using the scipt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082846#M641820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-01T10:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Match function issue</title>
      <link>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082847#M641821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Thanks for your help. I have used the following code and checked it in a straight table using what Dominic has suggested and now it seems to be working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load %VBELNPOSNR,&lt;/P&gt;&lt;P&gt;if(PSTYV='TAB' OR PSTYV='TABN','0 – CrossDock',If(LIPS_WERKS=[WH Code 1],'1 – Cust_Geo_Prime',if(LIPS_WERKS='8041' or &lt;/P&gt;&lt;P&gt;LIPS_WERKS='8042'or LIPS_WERKS='8043'or LIPS_WERKS='8044' or LIPS_WERKS='8615','2 – Sci_Ed',&lt;/P&gt;&lt;P&gt;if(LIPS_WERKS='8031' or LIPS_WERKS='8032','3 – Furniture',&lt;/P&gt;&lt;P&gt;if(LIPS_WERKS='8033' or LIPS_WERKS='8035','4 – Export',&lt;/P&gt;&lt;P&gt;if(LIPS_WERKS='8036' or LIPS_WERKS='8037','5 – Seradigm',if(LIPS_WERKS &amp;lt;&amp;gt; [WH Code 1] AND LIPS_WERKS &amp;lt;&amp;gt; [WH Code 2] AND&lt;/P&gt;&lt;P&gt;LIPS_WERKS &amp;lt;&amp;gt; [WH Code 3] and LIPS_WERKS &amp;lt;&amp;gt; [WH Code 4] and LIPS_WERKS &amp;lt;&amp;gt; [WH Code 5] and&lt;/P&gt;&lt;P&gt;LIPS_WERKS &amp;lt;&amp;gt; [WH Code 6] and&lt;/P&gt;&lt;P&gt;LIPS_WERKS &amp;lt;&amp;gt; '8031' and LIPS_WERKS &amp;lt;&amp;gt; '8032' and LIPS_WERKS &amp;lt;&amp;gt; '8033' and LIPS_WERKS &amp;lt;&amp;gt; '8036' and LIPS_WERKS &amp;lt;&amp;gt; '8037'&lt;/P&gt;&lt;P&gt; and LIPS_WERKS &amp;lt;&amp;gt; '8041' and LIPS_WERKS &amp;lt;&amp;gt; '8042' and LIPS_WERKS &amp;lt;&amp;gt; '8043' and LIPS_WERKS &amp;lt;&amp;gt; '8044'&lt;/P&gt;&lt;P&gt;&amp;nbsp; and LIPS_WERKS &amp;lt;&amp;gt; '8615' ,'6 – AWS_Override',if(%KNMTWERKS=LIPS_WERKS,'7 – Per_InfoRec',if(CLSTK_PLANT=LIPS_WERKS,'8 – Closest_StkPlnt',&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt; IF(DISMM&amp;lt;&amp;gt;'VR' AND DISMM&amp;lt;&amp;gt;'V1' AND DISMM&amp;lt;&amp;gt;'ZA' AND DISMM&amp;lt;&amp;gt;'ZD','9 - NOT_STOCKED',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'10 – Not_Closest_StkPlnt'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;)))))))))) AS ReasonCode&lt;/P&gt;&lt;P&gt;Resident Delivery;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I have tried the same script earlier, it seems to be working this time. Anyways thank you for all your help. The OR and AND operators are creating a problem for other developers as well in our team. They don't seem to do the operations correctly sometime and later they work fine. I'm not able to figure out why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-function-issue/m-p/1082847#M641821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-01T10:59:12Z</dc:date>
    </item>
  </channel>
</rss>

