<?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: Expression in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938881#M323979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any body help pls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 17:26:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-17T17:26:33Z</dc:date>
    <item>
      <title>Expression in script</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938875#M323973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; can anybody&amp;nbsp; change the given expression and give me the same in scripting part.&amp;nbsp; but&amp;nbsp; want the count of&amp;nbsp; matched and unmatched rows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXP::: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TRIM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Company_NM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;BR /&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;UPPER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[BU_SORT1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;UPPER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TRIM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LEFT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Common_NM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,20))),'NO MATCH','MATCH')&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;UPPER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[BU_SORT1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;UPPER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TRIM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LEFT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Company_NM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,20))),'NO MATCH','MATCH')&lt;BR /&gt;&lt;BR /&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;i want this to code in script&amp;nbsp; but want to rename&amp;nbsp;&amp;nbsp; as matched and unmatched&amp;nbsp;&amp;nbsp; with sum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;like&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if(BU_SORT1=Common_NM),1,0)&amp;nbsp; as matched&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(if(BU_SORT1&amp;lt;&amp;gt;Common_NM),1,0)&amp;nbsp; as unmatched &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;with the given conditions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am trying but showing&amp;nbsp; error&amp;nbsp; as:&amp;nbsp; multiple parameters..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Pls help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938875#M323973</guid>
      <dc:creator />
      <dc:date>2015-08-17T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in script</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938876#M323974</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt; sum(if(BU_SORT1=Common_NM,1,0))&amp;nbsp; as matched ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.6666669845581px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(if(BU_SORT1&amp;lt;&amp;gt;Common_NM,1,0))&amp;nbsp; as unmatched&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: 10.6666669845581px;"&gt;Regards,&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: 10.6666669845581px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938876#M323974</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-17T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in script</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938877#M323975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the Flag to yuur scipt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( Len(Tirm(Company_NM) ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( upper(Trim(BU_SORT1)) = UPPER(LEFT(TRIM(Common_NM),20)) , 1 ,1 )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,0 )&lt;/STRONG&gt; AS MatchFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MatchFlag have 1 for match 2 for nomatch 0 for null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UI:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Counr({&amp;lt;MatchFlag={1}&amp;gt;} DISTINCT&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Company_NM) --&amp;gt; Match Flag count&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Counr({&amp;lt;MatchFlag={2}&amp;gt;} DISTINCT&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Company_NM) --&amp;gt; NoMatch Flag count&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938877#M323975</guid>
      <dc:creator />
      <dc:date>2015-08-17T15:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in script</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938878#M323976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want them to show in the table box ,so dont want to do anything in the&amp;nbsp; UI side.No falgs works out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938878#M323976</guid>
      <dc:creator />
      <dc:date>2015-08-17T15:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in script</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938879#M323977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need the field shows on the table box, simply convert number into text.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if( Len(Tirm(Company_NM) ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if( upper(Trim(BU_SORT1)) = UPPER(LEFT(TRIM(Common_NM),20)) , 'Match' ,'NoMatch' )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,null() ) AS IsMatch&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 16:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938879#M323977</guid>
      <dc:creator />
      <dc:date>2015-08-17T16:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in script</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938880#M323978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dathu,&amp;nbsp; I didn't get you. can you clear me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 17:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938880#M323978</guid>
      <dc:creator />
      <dc:date>2015-08-17T17:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in script</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938881#M323979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any body help pls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 17:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-script/m-p/938881#M323979</guid>
      <dc:creator />
      <dc:date>2015-08-17T17:26:33Z</dc:date>
    </item>
  </channel>
</rss>

