<?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: Getting a dynamic Match expression to work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618809#M228008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is quite difficult to create such lists without syntax trouble. You should use a additionally textbox/chart to see if your expressions returned exactly a string which looks like a manually string which successfully worked in your object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will need a $-sign expansion - have a look here: &lt;A href="https://community.qlik.com/docs/DOC-5624"&gt;$-Sign Expansions in QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be it will look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(match(Keyfield ,$(='$(vCondition)')), Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 15:48:24 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-03-10T15:48:24Z</dc:date>
    <item>
      <title>Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618805#M228004</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'm trying to create a pivot chart which uses a dynamic MATCH expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a variable which changes based on users choice.&lt;/P&gt;&lt;P&gt;Inside the pivot the variable is used to decide which records to summarize.&lt;/P&gt;&lt;P&gt;However the expression in the pivot does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable(vCondition):&lt;/P&gt;&lt;P&gt;=if(Group='Avdelingsopphold', chr(39) &amp;amp; 'E' &amp;amp; chr(39) &amp;amp;',' &amp;amp; chr(39) &amp;amp;'F' &amp;amp;',' &amp;amp; chr(39) &amp;amp; 'K' &amp;amp; chr(39) &amp;amp;',' &amp;amp; chr(39) &amp;amp; 'I' &amp;amp; chr(39), chr(39) &amp;amp; 'E' &amp;amp; chr(39) &amp;amp;',' &amp;amp; chr(39) &amp;amp;'S' &amp;amp;',' &amp;amp; chr(39) &amp;amp; 'K' &amp;amp; chr(39))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;=sum( if( match( Keyfield ,$(vCondition))&amp;gt;0,Amount,0) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using qv 11.20&lt;/P&gt;&lt;P&gt;Please find attached an example file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Olav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 09:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618805#M228004</guid>
      <dc:creator />
      <dc:date>2014-03-10T09:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618806#M228005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Olav,&lt;/P&gt;&lt;P&gt;There is no attachment.&amp;nbsp; For now, try this:&lt;/P&gt;&lt;P&gt;sum(if(match(Keyfield , vCondition), Amount, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618806#M228005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-10T15:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618807#M228006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... and here's the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618807#M228006</guid>
      <dc:creator />
      <dc:date>2014-03-10T15:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618808#M228007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying, I've tried your solution with no luck....&lt;/P&gt;&lt;P&gt;Seems the attachment got messed up - will post it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618808#M228007</guid>
      <dc:creator />
      <dc:date>2014-03-10T15:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618809#M228008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is quite difficult to create such lists without syntax trouble. You should use a additionally textbox/chart to see if your expressions returned exactly a string which looks like a manually string which successfully worked in your object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will need a $-sign expansion - have a look here: &lt;A href="https://community.qlik.com/docs/DOC-5624"&gt;$-Sign Expansions in QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be it will look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(match(Keyfield ,$(='$(vCondition)')), Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618809#M228008</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-03-10T15:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618810#M228009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see...&amp;nbsp; You can't use match here.&amp;nbsp; Keyfield is a set of available values, not one value.&amp;nbsp; My guess you want it to return true if at least one value in the Keyfield matches at least one letter in variable.&lt;/P&gt;&lt;P&gt;Is it correct?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Edit: It should work if &lt;STRONG&gt;one value is selected&lt;/STRONG&gt; in the KeyField, but the variable is broken - there is no closing ' after F and after S.&amp;nbsp; It should be&lt;/P&gt;&lt;P&gt;=if(Group='Avdelingsopphold', chr(39) &amp;amp; 'E' &amp;amp; chr(39) &amp;amp;',' &amp;amp; chr(39) &amp;amp;'F' &amp;amp; chr(39) &amp;amp;',' &amp;amp; chr(39) &amp;amp; 'K' &amp;amp; chr(39) &amp;amp;',' &amp;amp; chr(39) &amp;amp; 'I' &amp;amp; chr(39), chr(39) &amp;amp; 'E' &amp;amp; chr(39) &amp;amp;',' &amp;amp; chr(39) &amp;amp;'S' &amp;amp; chr(39)&amp;amp;',' &amp;amp; chr(39) &amp;amp; 'K' &amp;amp; chr(39))&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618810#M228009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-10T15:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618811#M228010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still does not work.&lt;/P&gt;&lt;P&gt;I've tried the complete expression as a variable as well, not only part of it.&lt;/P&gt;&lt;P&gt;The expression is working without the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I blind to something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 08:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618811#M228010</guid>
      <dc:creator />
      <dc:date>2014-03-11T08:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618812#M228011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have had a small error within your variable. To avoid this you should write your expressions with a little bit more structure - have a look on the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 10:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618812#M228011</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-03-11T10:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618813#M228012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, works perfect.&lt;/P&gt;&lt;P&gt;Michael got the right answer too , strange I didn't see that, structuring is important &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 10:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618813#M228012</guid>
      <dc:creator />
      <dc:date>2014-03-11T10:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a dynamic Match expression to work</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618814#M228013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure you didn't see it because I used "edit".&amp;nbsp; Apparently notifications are not sent on edit.&lt;/P&gt;&lt;P&gt;The important part that you got the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 12:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-dynamic-Match-expression-to-work/m-p/618814#M228013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-11T12:01:34Z</dc:date>
    </item>
  </channel>
</rss>

