<?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: Dynamic Field name as Variable within Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98706#M15798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, in that case I think you only need to add an equal sign to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;eCMOption 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;SET eCMOption = =@ContributionFN; //2 equals, first one to assign value, second to be part of the variable content&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 16:30:13 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2018-09-24T16:30:13Z</dc:date>
    <item>
      <title>Dynamic Field name as Variable within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98701#M15793</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 evaluate a variable within a set analysis and it does not want to evaluate as it did before the last November Service release. Setup goes as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INLINE table with filed names(@ContributionFN) and Listbox (@ContributionOption) selection&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;@ContributionNum, @ContributionOption, @ContributionFN&lt;/P&gt;&lt;P&gt;1, 12 Month Option,DSImpactIND12,&lt;/P&gt;&lt;P&gt;2, 18 Month Option,DSImpactIND18,&lt;/P&gt;&lt;P&gt;3, 24 Month Option,DSImpactIND24,];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable used in set analysis &lt;/P&gt;&lt;P&gt;SET eCMOption =@ContributionFN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis &lt;/P&gt;&lt;P&gt;LET eCYCM&amp;nbsp;&amp;nbsp; = 'SUM({$&amp;lt;$'&amp;amp;'(eCMOption)'&amp;amp;'={1}&amp;gt;}ContributionMargin)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So each time a value is selected in the listbox(@ContributionOption) the variable with evaluate for the new selection. I have tried a few options and none seem to work... Encasing the variable in square brackets, or changing the tick marks to chr(39) or listing the variable with no $ expansion. Any help is greatly appreciated. Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 20:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98701#M15793</guid>
      <dc:creator>stefano27</dc:creator>
      <dc:date>2018-09-21T20:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field name as Variable within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98702#M15794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really didn't understand, What you are trying. May be Add Equal(=) sign like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET eCYCM&amp;nbsp;&amp;nbsp; = '&lt;STRONG&gt;=&lt;/STRONG&gt;SUM({$&amp;lt;$'&amp;amp;'(eCMOption)'&amp;amp;'={1}&amp;gt;}ContributionMargin)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2018 05:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98702#M15794</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-09-22T05:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field name as Variable within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98703#M15795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, by default that expression will sum the contribution margin from records with @ContributionFN=1&lt;STRONG&gt; (a fixed &lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;)&lt;/STRONG&gt;, and I don't see a record with that value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it should be &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;SET eCMOption =@Contribution&lt;SPAN style="color: #ff0000;"&gt;Num&lt;/SPAN&gt;;&lt;/STRONG&gt; // To show always the 12 month option in eCYCM variable&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2018 07:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98703#M15795</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-09-22T07:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field name as Variable within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98704#M15796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression does not evaluate the values inside the set so it just sums the contribution margin. I'm trying to sum up Contribution Margin for the different types of flags in the application (DSImpactIND12, 18, 24) which are 0 or 1. Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98704#M15796</guid>
      <dc:creator>stefano27</dc:creator>
      <dc:date>2018-09-24T14:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field name as Variable within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98705#M15797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to sum Contribution Margin for the different DSImpactIND flags. Those can be 0 or 1. Thank you for your answer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98705#M15797</guid>
      <dc:creator>stefano27</dc:creator>
      <dc:date>2018-09-24T14:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field name as Variable within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98706#M15798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, in that case I think you only need to add an equal sign to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;eCMOption 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;SET eCMOption = =@ContributionFN; //2 equals, first one to assign value, second to be part of the variable content&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 16:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98706#M15798</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-09-24T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field name as Variable within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98707#M15799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The extra = for the set variable did the trick. Thank you so much for your response and your time and explanation. Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 19:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-name-as-Variable-within-Set-Analysis/m-p/98707#M15799</guid>
      <dc:creator>stefano27</dc:creator>
      <dc:date>2018-09-24T19:42:50Z</dc:date>
    </item>
  </channel>
</rss>

