<?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: Help with Concatenated value variable in Set Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226137#M461520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to read through this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It this particular case I checked what worked in text box object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) =vCohortMbr_test -&amp;gt; This did not work, showed me your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG style="color: #ff0000;"&gt;=$(vCohortMbr_test)&lt;/STRONG&gt; -&amp;gt; Showed me all the individual values that your expression evaluated to....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I knew this works, I put that within the dollar sign expansion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;=$(vCohortMbr_test)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call it my Text Box Test &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2017 17:10:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-10T17:10:56Z</dc:date>
    <item>
      <title>Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226131#M461514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a variable based on a set expression:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;vCohortMbr_test =&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; {&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Eligibility&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'E'},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MEMBER_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'*'},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Report Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(='&amp;gt;=' &amp;amp; Date($(vCE),'YYYY-MM')) $(='&amp;lt;=' &amp;amp; Date($(vCE),'YYYY-MM'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Assessment Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=$(vCS)) &amp;lt;=$(=$(vCE))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(34) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MEMBER_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(34),',') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;that generates a string of Member IDs that&lt;/P&gt;&lt;P&gt;1) Have a status of Eligible&lt;/P&gt;&lt;P&gt;2) MEMBER_ID must not be Null&lt;/P&gt;&lt;P&gt;3) In a set reporting period (single month, last month of the cohort period based on an island calendar picklist) [Report Date]&lt;/P&gt;&lt;P&gt;4) That also had a date value [Assessment Date] within the cohort reporting window which is based on vCS and vCE for the start/end date values for selected cohort timeframe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on that unique Member ID list of values I need to perfume some set expression, ie Count() and Sum()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I can't seem to get the variable to work in a set expression, simple syntax error I assume?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample Set expression I've tried looks like the below, having tested different iterations of single and double quotes and $( expansions without any luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; {&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MEMBER_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vCohortMbr_test)'} &lt;BR /&gt; &amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226131#M461514</guid>
      <dc:creator>jcs_2015</dc:creator>
      <dc:date>2017-01-10T16:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226132#M461515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this (Remove the single quotes around your variable):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MEMBER_ID = {$(vCohortMbr_test)}&amp;gt;} CNT)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226132#M461515</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-10T16:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226133#M461516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;MEMBER_ID = {$(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;vCohortMbr_test)}&amp;gt;} CNT)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226133#M461516</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-10T16:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226134#M461517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that did not work Sunny, I've attached the model.&amp;nbsp; Yellow table is were I'm testing set expressions based on that variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226134#M461517</guid>
      <dc:creator>jcs_2015</dc:creator>
      <dc:date>2017-01-10T16:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226135#M461518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt;"&gt;{&amp;lt;&lt;/STRONG&gt;&lt;STRONG&gt;MEMBER_ID = {$(=$(vCohortMbr_test))}&lt;/STRONG&gt;&lt;STRONG&gt;&amp;gt;} &lt;/STRONG&gt;&lt;STRONG&gt;CNT)&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/149002_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226135#M461518</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-10T17:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226136#M461519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Certainly did, Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some sort of resource I can reference that helps with these types of syntax challenges for set expressions I can leverage for future needs?&amp;nbsp; Seems as if there are so many combinations of $(=... etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When to use which would be and incredibly helpful resource.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226136#M461519</guid>
      <dc:creator>jcs_2015</dc:creator>
      <dc:date>2017-01-10T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226137#M461520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to read through this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It this particular case I checked what worked in text box object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) =vCohortMbr_test -&amp;gt; This did not work, showed me your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG style="color: #ff0000;"&gt;=$(vCohortMbr_test)&lt;/STRONG&gt; -&amp;gt; Showed me all the individual values that your expression evaluated to....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I knew this works, I put that within the dollar sign expansion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;=$(vCohortMbr_test)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call it my Text Box Test &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226137#M461520</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-10T17:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226138#M461521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again, I'll be sure to give @ HIC's document a deep read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226138#M461521</guid>
      <dc:creator>jcs_2015</dc:creator>
      <dc:date>2017-01-10T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Concatenated value variable in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226139#M461522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable definition (with a equal sign)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;Concat(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Eligibility = {'E'},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MEMBER_ID = {'*'},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Report Date] = {"$(='&amp;gt;=' &amp;amp; Date($(vCE),'YYYY-MM'))&amp;nbsp; $(='&amp;lt;=' &amp;amp; Date($(vCE),'YYYY-MM'))"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Assessment Date] = {"&amp;gt;=$(=$(vCS)) &amp;lt;=$(=$(vCE))"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; DISTINCT Chr(34) &amp;amp; MEMBER_ID &amp;amp; Chr(34),',')&lt;/STRONG&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&gt;&lt;STRONG&gt;Sum({&amp;lt;MEMBER_ID = {$(=vCohortMbr_test)}&amp;gt;} CNT)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read about the equal sign here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3996"&gt;The Little Equals Sign&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Concatenated-value-variable-in-Set-Expression/m-p/1226139#M461522</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-10T17:13:41Z</dc:date>
    </item>
  </channel>
</rss>

