<?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 inside Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847881#M1018068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=NUM((SUM({&amp;lt;[ID]={"=Rank(Aggr(SUM([Current Quarter]),[ID]))&amp;lt;=20"}&amp;gt;} $(vData))),'$#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, doesnot work!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 19:02:16 GMT</pubDate>
    <dc:creator>bkn</dc:creator>
    <dc:date>2015-04-02T19:02:16Z</dc:date>
    <item>
      <title>Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847874#M1018061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable which store expression. I need to use that variable in Set Analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable = vData &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&amp;nbsp; =SUM({&amp;lt;Account={"Prime"}&amp;gt;}vData) // this does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847874#M1018061</guid>
      <dc:creator>bkn</dc:creator>
      <dc:date>2015-04-02T16:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847875#M1018062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try '$(vData)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847875#M1018062</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-02T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847876#M1018063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends what the expression is inside the variable.&amp;nbsp; If it contains an aggregation (e.g. sum or count), you have sum( of sum()), which is not allowed.&amp;nbsp; You have to use aggr:&lt;/P&gt;&lt;P&gt;sum(&lt;STRONG&gt;aggr&lt;/STRONG&gt;(sum(),&lt;STRONG&gt;fields&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;In your case probably something like this:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Account={"Prime"}&amp;gt;} aggr(vData,&amp;lt;list of fields here&amp;gt;) )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847876#M1018063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-02T16:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847877#M1018064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DOES NOT WORK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847877#M1018064</guid>
      <dc:creator>bkn</dc:creator>
      <dc:date>2015-04-02T16:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847878#M1018065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;What fields will be here &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;lt;list of fields here&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847878#M1018065</guid>
      <dc:creator>bkn</dc:creator>
      <dc:date>2015-04-02T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847879#M1018066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is something I cannot guess - it is specific to your application and the chart.&amp;nbsp; If you can upload your app or a simplified example, then I (or someone else) will be able to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847879#M1018066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-02T16:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847880#M1018067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try just =$(vdata) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 17:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847880#M1018067</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-04-02T17:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847881#M1018068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=NUM((SUM({&amp;lt;[ID]={"=Rank(Aggr(SUM([Current Quarter]),[ID]))&amp;lt;=20"}&amp;gt;} $(vData))),'$#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, doesnot work!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 19:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847881#M1018068</guid>
      <dc:creator>bkn</dc:creator>
      <dc:date>2015-04-02T19:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847882#M1018069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is inside of you variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you provide that we can understand what can be causing the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 19:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847882#M1018069</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-02T19:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847883#M1018070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These expressions are inside variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(UnbilledMonthName='FEB', SUM({&amp;lt;UnbilledMonthName={'NOV'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='MAR', SUM({&amp;lt;UnbilledMonthName={'DEC'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='APR', SUM({&amp;lt;UnbilledMonthName={'JAN'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='MAY', SUM({&amp;lt;UnbilledMonthName={'FEB'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='JUN', SUM({&amp;lt;UnbilledMonthName={'MAR'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='JUL', SUM({&amp;lt;UnbilledMonthName={'APR'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='AUG', SUM({&amp;lt;UnbilledMonthName={'MAY'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='SEP', SUM({&amp;lt;UnbilledMonthName={'JUN'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='OCT', SUM({&amp;lt;UnbilledMonthName={'JUL'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='NOV', SUM({&amp;lt;UnbilledMonthName={'AUG'},UnbilledFYYear={'$(vFYPriorYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='DEC', SUM({&amp;lt;UnbilledMonthName={'SEP'},UnbilledFYYear={'$(vFYPriorYear)'}&amp;gt;}[Unbilled Current Quarter])&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='JAN', SUM({&amp;lt;UnbilledMonthName={'OCT'},UnbilledFYYear={'$(vFYPriorYear)'}&amp;gt;}[Unbilled Current Quarter])))))))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 19:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847883#M1018070</guid>
      <dc:creator>bkn</dc:creator>
      <dc:date>2015-04-02T19:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847884#M1018071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok then try with &lt;/P&gt;&lt;P&gt; If(UnbilledMonthName='FEB', aggr(SUM({&amp;lt;UnbilledMonthName={'NOV'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='MAR', aggr(SUM({&amp;lt;UnbilledMonthName={'DEC'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='APR', aggr(SUM({&amp;lt;UnbilledMonthName={'JAN'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='MAY', aggr(SUM({&amp;lt;UnbilledMonthName={'FEB'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='JUN', aggr(SUM({&amp;lt;UnbilledMonthName={'MAR'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='JUL', aggr(SUM({&amp;lt;UnbilledMonthName={'APR'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='AUG', aggr(SUM({&amp;lt;UnbilledMonthName={'MAY'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='SEP', aggr(SUM({&amp;lt;UnbilledMonthName={'JUN'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='OCT', aggr(SUM({&amp;lt;UnbilledMonthName={'JUL'},UnbilledFYYear={'$(vFYCurrentYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='NOV', aggr(SUM({&amp;lt;UnbilledMonthName={'AUG'},UnbilledFYYear={'$(vFYPriorYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='DEC', aggr(SUM({&amp;lt;UnbilledMonthName={'SEP'},UnbilledFYYear={'$(vFYPriorYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)&lt;/P&gt;&lt;P&gt;,If(UnbilledMonthName='JAN', aggr(SUM({&amp;lt;UnbilledMonthName={'OCT'},UnbilledFYYear={'$(vFYPriorYear)'}&amp;gt;}[Unbilled Current Quarter]),UnbilledMonthName)))))))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 20:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847884#M1018071</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-02T20:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variables inside Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847885#M1018072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your set expression produces an empty set, unless ID can contain the string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;"=Rank(Aggr(SUM([Current Quarter]),[ID]))&amp;lt;=20"&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;This is a string and not an expression that you want to be evaluated and produce 0 (false) or -1. (true).&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;First test without set expression and with the big IF instead of a variable. If that works, replace the big IF by the variable substitution $(vData). If that works, add a correct set expression. That way, you'll gradually build up a very complex anf functioning expression without loosing track of where exactly things start to go wrong.&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;Best,&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;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 21:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-inside-Set-Analysis/m-p/847885#M1018072</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-04-02T21:28:38Z</dc:date>
    </item>
  </channel>
</rss>

