<?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: Variables in Set Analysis, Left side of = in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103669#M7003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you!! I figured it out. Slightly different than what you proposed. I replied to the original post with the correct info.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2018 14:37:53 GMT</pubDate>
    <dc:creator>WiscoSippi</dc:creator>
    <dc:date>2018-08-21T14:37:53Z</dc:date>
    <item>
      <title>Variables in Set Analysis, Left side of =</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103663#M6997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use a variable on the LEFT side of my SA equation. The measure is calculating as if there isn't any set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the measure with the variable in &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;red&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt; &lt;STRONG style="color: #ff0000;"&gt;$(vMeasureSelection_542_RA_Account_Group)&lt;/STRONG&gt; = {'Revenue'} &amp;gt;} $(vMeasureSelection_RA_542_Actuals) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That variable contains a pick function and two field names as options:&lt;/P&gt;&lt;P&gt;pick($(vMeasureType), RA_Actuals_Group, Act_Group)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 16:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103663#M6997</guid>
      <dc:creator>WiscoSippi</dc:creator>
      <dc:date>2018-08-20T16:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis, Left side of =</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103664#M6998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Pick(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vMeasureType), RA_Actuals_Group, Act_Group&lt;/SPAN&gt;) = 'Revenue', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vMeasureType), RA_Actuals_Group, Act_Group&lt;/SPAN&gt;), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMeasureType be? If it is a string, instead of a number, then you might need to enclose $(vMeasureType in single quotes.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vMeasureType)'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 03:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103664#M6998</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2018-08-21T03:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis, Left side of =</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103665#M6999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=sum({&amp;lt; [&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;$(vMeasureSelection_542_RA_Account_Group)]&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = {'Revenue'} &amp;gt;} $(vMeasureSelection_RA_542_Actuals) )&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: 13px;"&gt;&lt;BR /&gt;&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: 13px;"&gt;variable &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: 13px;"&gt;&lt;BR /&gt;&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: 13px;"&gt;try using an equal sign before&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=pick('$(vMeasureType)', RA_Actuals_Group, Act_Group)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=pick($(vMeasureType), RA_Actuals_Group, Act_Group)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 05:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103665#M6999</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2018-08-21T05:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis, Left side of =</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103666#M7000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a variable on the LHS as long as it expands into a valid field name. put &lt;EM&gt;=vMeasureSelection_542_RA_Account_Group&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;into a text box. Does it display the field name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is vMeasureType as numeric?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define &lt;EM&gt;vMeasureSelection_542_RA_Account_Group &lt;/EM&gt;with a leading = sign as suggested above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 05:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103666#M7000</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-08-21T05:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis, Left side of =</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103667#M7001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello! I figured out how to get it to work. All of the suggestions provided were very helpful but the final solution was slightly different. See below for the working versions. Original pieces are in red and the additional code is in blue:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt; &lt;SPAN style="color: #0000ff;"&gt;$(=&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;$(vMeasureSelection_542_RA_Account_Group)&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt; = {'Revenue'} &amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;$(=&lt;/SPAN&gt;$(vMeasureSelection_RA_542_Actuals)&lt;SPAN style="color: #0000ff;"&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="color: #000000;"&gt;Also had to modify the variable &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;$(vMeasureSelection_542_RA_Account_Group), again additions are in &lt;SPAN style="color: #0000ff; font-size: 13.3333px;"&gt;blue:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;pick( $(vMeasureType),&lt;SPAN style="color: #0000ff;"&gt;'[&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;RA_Actuals_Group&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;]'&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;'[&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;Act_Group&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;]'&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103667#M7001</guid>
      <dc:creator>WiscoSippi</dc:creator>
      <dc:date>2018-08-21T14:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis, Left side of =</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103668#M7002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!! I figured it out. Slightly different than what you proposed. I replied to the original post with the correct info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103668#M7002</guid>
      <dc:creator>WiscoSippi</dc:creator>
      <dc:date>2018-08-21T14:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis, Left side of =</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103669#M7003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you!! I figured it out. Slightly different than what you proposed. I replied to the original post with the correct info.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103669#M7003</guid>
      <dc:creator>WiscoSippi</dc:creator>
      <dc:date>2018-08-21T14:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis, Left side of =</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103670#M7004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you!! I figured it out. Slightly different than what you proposed. I replied to the original post with the correct info.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis-Left-side-of/m-p/103670#M7004</guid>
      <dc:creator>WiscoSippi</dc:creator>
      <dc:date>2018-08-21T14:38:08Z</dc:date>
    </item>
  </channel>
</rss>

