<?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: What the $(expansion)  am I doing wrong in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060465#M355036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;Even i would like to clear this point. I was too struggling with the same issue.&lt;/P&gt;&lt;P&gt;if(match([Report Name], '$(vReportList)'&amp;nbsp; ), 1 ,0) as Flag&lt;/P&gt;&lt;P&gt;vReportList though given in single quotes with DSE was not working. The solution provided by Sunny worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did see the logs where the '$()' was converting the string to: 'hjbjhb'',''cvsdc'',''xcd'',''csasdc'&lt;/P&gt;&lt;P&gt;So each single quote withing the string was converted to double quote, posibily that was the reason match function did not work. But again i am confused why would this happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Harshit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 18:01:58 GMT</pubDate>
    <dc:creator>harsh44_bhatia</dc:creator>
    <dc:date>2016-07-18T18:01:58Z</dc:date>
    <item>
      <title>What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060454#M355025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let vEngNumber=peek('ePartner',$(vRand),'Sampling1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works and returns a value like Greenberg, Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I am having trouble is&lt;/P&gt;&lt;P&gt;Sampling2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; eEngNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ePartner,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Engagement Start Date]&lt;/P&gt;&lt;P&gt;Resident Sampling1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where ePartner &amp;lt;&amp;gt;&amp;nbsp; $(vPartnerB);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to wrap the $(vPartnerB) with single quotes otherwise it's interpreted as &lt;/P&gt;&lt;P&gt;where ePartner &amp;lt;&amp;gt;Greenberg,Dan&lt;/P&gt;&lt;P&gt;what I want is &lt;/P&gt;&lt;P&gt;where ePartner &amp;lt;&amp;gt; 'Greenberg,Dan'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 17:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060454#M355025</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2016-03-23T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060455#M355026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe put the single quotes round it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.... &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;where ePartner &amp;lt;&amp;gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;'&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;$(vPartnerB)&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;'&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 18:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060455#M355026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T18:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060456#M355027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Dan Greeberg wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;let vEngNumber=peek('ePartner',$(vRand),'Sampling1');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I need to wrap the $(vPartnerB) with single quotes&lt;/STRONG&gt; otherwise it's interpreted as&lt;/P&gt;
&lt;P&gt;where ePartner &amp;lt;&amp;gt;Greenberg,Dan&lt;/P&gt;
&lt;P&gt;what I want is&lt;/P&gt;
&lt;P&gt;where ePartner &amp;lt;&amp;gt; 'Greenberg,Dan'&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I understand your question, I think you've already answered it, wrap the dollar sign expansion in single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is not working for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 18:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060456#M355027</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-23T18:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060457#M355028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should also work:&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: 13px;"&gt;&lt;STRONG&gt;LET vEngNumber=Chr(39) &amp;amp; Peek('ePartner',$(vRand),'Sampling1') &amp;amp; Chr(39);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this:&lt;/P&gt;&lt;P&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&gt;Sampling2:&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&gt;Load&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&gt;&amp;nbsp; eEngNumber,&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&gt;&amp;nbsp; ePartner,&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&gt;&amp;nbsp; [Engagement Start Date]&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&gt;Resident Sampling1&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;where ePartner &amp;lt;&amp;gt;&amp;nbsp; $(vPartnerB);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 18:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060457#M355028</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T18:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060458#M355029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 18:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060458#M355029</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2016-03-23T18:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060459#M355030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have assumed Bill's method to have worked as well. That did not work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 18:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060459#M355030</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T18:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060460#M355031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'$(vPartnerB)' is interpreted as '''Greenberg, Dan''' and did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 18:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060460#M355031</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2016-03-23T18:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060461#M355032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Dan Greeberg wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;'$(vPartnerB)' is interpreted as '''Greenberg, Dan''' and did not work.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's how the document log or debug screen logs the expanded variable? With added double quotes?&lt;/P&gt;&lt;P&gt;Interesting, that's against everything I've learned about how dollar sign expansion should work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060461#M355032</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-23T19:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060462#M355033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrapping the dollar sign expansion in single quotes does not work in my where clause&amp;nbsp; but ch(39) &amp;amp; $(vPartnerB) &amp;amp; chr(39) works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060462#M355033</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2016-03-23T19:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060463#M355034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you've tried adding the single quotes at the right place?&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: 13px;"&gt;&lt;STRONG&gt;LET vEngNumber=Chr(39) &amp;amp; Peek('ePartner',$(vRand),'Sampling1') &amp;amp; Chr(39);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this:&lt;/P&gt;&lt;P&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&gt;Sampling2:&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&gt;Load&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&gt;&amp;nbsp; eEngNumber,&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&gt;&amp;nbsp; ePartner,&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&gt;&amp;nbsp; [Engagement Start Date]&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&gt;Resident Sampling1&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;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;where ePartner &amp;lt;&amp;gt;&amp;nbsp; $(vPartnerB);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Sunny's change should have had no effect at all, since variable vEngNumber is not used in the where clause.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;edit: And don't take me wrong, Dan, I just want to understand why the trivial solution doesn't work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060463#M355034</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-23T19:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060464#M355035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vEngNumber is infact vPartnerB is my guess.&lt;/P&gt;&lt;P&gt;I might be totally wrong &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, 23 Mar 2016 19:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060464#M355035</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T19:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: What the $(expansion)  am I doing wrong</title>
      <link>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060465#M355036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;Even i would like to clear this point. I was too struggling with the same issue.&lt;/P&gt;&lt;P&gt;if(match([Report Name], '$(vReportList)'&amp;nbsp; ), 1 ,0) as Flag&lt;/P&gt;&lt;P&gt;vReportList though given in single quotes with DSE was not working. The solution provided by Sunny worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did see the logs where the '$()' was converting the string to: 'hjbjhb'',''cvsdc'',''xcd'',''csasdc'&lt;/P&gt;&lt;P&gt;So each single quote withing the string was converted to double quote, posibily that was the reason match function did not work. But again i am confused why would this happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Harshit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 18:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-the-expansion-am-I-doing-wrong/m-p/1060465#M355036</guid>
      <dc:creator>harsh44_bhatia</dc:creator>
      <dc:date>2016-07-18T18:01:58Z</dc:date>
    </item>
  </channel>
</rss>

