<?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: Variable in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122851#M457577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"For this take a look on my both examples above." But this means that for every Sales_variant i need new measure:( Is it possible to do with one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2018 08:01:41 GMT</pubDate>
    <dc:creator>Death4Free</dc:creator>
    <dc:date>2018-10-01T08:01:41Z</dc:date>
    <item>
      <title>Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122845#M457571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Is it possible to use variable as parameter in Set Analysis. I mean for example measure like this:&lt;/P&gt;&lt;P&gt;Count( {&amp;lt; $(sum_Sales)={"&amp;gt;0"}&amp;gt;} [Month]) - dont work.&lt;/P&gt;&lt;P&gt;I want to count months where variable sum_Sales is more than 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 06:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122845#M457571</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T06:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122846#M457572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should be possible as long as your variable gets expanded to a&lt;STRONG&gt; field name&lt;/STRONG&gt;. Try like:&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;Count( {&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; '&lt;/STRONG&gt;&lt;/SPAN&gt;$(sum_Sales)&lt;STRONG style="color: #ff0000;"&gt;'&lt;/STRONG&gt;={"&amp;gt;0"}&amp;gt;} [Month]) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 06:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122846#M457572</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-10-01T06:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122847#M457573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not quite clear what your variable contained but from your description I assume that it isn't a field else an expression. In this case I think you could try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt; Category = {"=sum(Sales)&amp;gt;0"}&amp;gt;} [Month])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or maybe&lt;/P&gt;&lt;P&gt;Count({&amp;lt; Sales = {'*'}&amp;gt;} [Month])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 07:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122847#M457573</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-01T07:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122848#M457574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count( {&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; '&lt;/STRONG&gt;&lt;/SPAN&gt;$(sum_Sales)&lt;STRONG style="color: #ff0000;"&gt;'&lt;/STRONG&gt;={"&amp;gt;0"}&amp;gt;} [Month])&amp;nbsp; give me numbers but not that, what i expected. I will explain more details.&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;I want table :&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;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count month with sales&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;2017&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&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;2018&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&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;Function above give me:&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;2017&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 365&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;2018&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 271&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;In other words count of dates.&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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Variable $(sum_Sales) = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(GetFieldSelections([Sales_variant]) = 'Eur', $(sum_Eur),&lt;/P&gt;&lt;P&gt;if(GetFieldSelections([Sales_variant]) = 'Psc.', $(sum_Psc),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(sum_Eur) = sum(Eur)&lt;/P&gt;&lt;P&gt;$(sum_Psc) = sum(Psc)&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 07:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122848#M457574</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T07:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122849#M457575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This means your month-field isn't a month else a date. It needs to be created with something like month(DateField) instead of just formatting a date like: date(DateField, 'MMM').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;: I just noticed that your variable contained other variables which contain an expression - this couldn't be used as a field-reference within the set analysis - it is just invalid and will be therefore ignored and you will get results as if no condition is applied. This means you need to adjust the above mentioned month-field issue and an approach by which you could apply your sum() condition against a field-reference. For this take a look on my both examples above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 07:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122849#M457575</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-01T07:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122850#M457576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean Count( {&amp;lt; '$(sum_Sales)'={"&amp;gt;0"}&amp;gt;} Month([Date-TempDate])) ? This dont work too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Date-TempDate] - field with date from master calendar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 07:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122850#M457576</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T07:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122851#M457577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"For this take a look on my both examples above." But this means that for every Sales_variant i need new measure:( Is it possible to do with one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122851#M457577</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T08:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122852#M457578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also tried Sum(if($(sum_Sales)&amp;gt;0,1,0)&amp;nbsp; - dont work. I guess problem is the same as above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122852#M457578</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T08:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122853#M457579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case you nested aggregations without using aggr() which isn't valid. But with this you should get results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(sum_Sales)&amp;gt;0, count(Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122853#M457579</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-01T08:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122854#M457580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This dont work too:(&lt;/P&gt;&lt;P&gt;Count({&amp;lt; YearsStart([Date-TempDate]) = {"=sum(Eur)&amp;gt;0"}&amp;gt;} MonthsStart([Date-TempDate])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122854#M457580</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T08:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122855#M457581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not necessary - you could try it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt; [$(=maxstring([Sales_variant]))] = {'*'}&amp;gt;} [Month])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122855#M457581</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-01T08:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122856#M457582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No result if($(sum_Sales)&amp;gt;0, count(MonthsStart([Date-TempDate]))) or something wrong in expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122856#M457582</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T08:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122857#M457583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your variable-creation isn't correct because you don't transferred the sum-expression to sum_sales else the expression-results of sum(Eur) respectively sum(Psc) - therefore change it to:&lt;/P&gt;&lt;P&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;Variable $(sum_Sales) = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(GetFieldSelections([Sales_variant]) = 'Eur', 'sum(Eur)',&lt;/P&gt;&lt;P&gt;if(GetFieldSelections([Sales_variant]) = 'Psc.', 'sum(Psc)'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122857#M457583</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-01T08:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122858#M457584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont understand this - [$(=maxstring([Sales_variant]))] = {'*'}, but tried this expression Count({&amp;lt; [$(=maxstring([Sales_variant]))] = {'*'}&amp;gt;} MonthsStart([Date-TempDate])) and it dont work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122858#M457584</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122859#M457585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[$(=maxstring([Sales_variant]))] returns the max. value of Sales_variant which is either the selected fieldvalue there or if is no selection the max. value. If we assume that there are just both above mentioned values it will without a selection return: [Psc] which is deduced from your other code a native field and this is checked by {'*'} if there are any existing records respectively values which are not NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In many cases such a simplified construct will work because usually don't exists such NULL records and it's also rather unlikely that there are any respectively many negative fieldvalues which might lead unwanted to different results as querying if the sum(FIELD) &amp;gt; 0. If this is important you couldn't use this approach and must try it with an approach like: Count({&amp;lt; Category = {"=sum(Sales)&amp;gt;0"}&amp;gt;} [Month]) or depending on your datamodel with an if-loop like mentioned earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside this it would be helpful if you describe what happens instead of it didn't work - are the result NULL, 0, any unexpected value. Further if you really want to use MonthsStart([Date-TempDate]) instead of a native field you will need a DISTINCT because otherwise it will further count the single dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 09:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122859#M457585</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-01T09:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122860#M457586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I will sum up too what i tried:&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;1. Variable $(sum_Sales) was changed to&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(GetFieldSelections([Sales_variant]) = 'Eur', sum(Eur),&lt;/P&gt;&lt;P&gt;if(GetFieldSelections([Sales_variant]) = 'Psc.', sum(Psc)))&lt;/P&gt;&lt;P&gt;2. Count({&amp;lt; [$(=maxstring([Sales_varian]))] = {'*'}&amp;gt;} MonthsStart([Date-TempDate])) return Null for every year with distinct same&lt;/P&gt;&lt;P&gt;3. Count({&amp;lt; [$(=maxstring([Sales_varian]))] = {'*'}&amp;gt;} [Date-TempDate.autoCalendar.Month])) return 0 for every year&lt;/P&gt;&lt;P&gt;4. if($(sum_Sales)&amp;gt;0, count(distinct MonthsStart([Date-TempDate]))) return Null for every year&lt;/P&gt;&lt;P&gt;5. Count({&amp;lt; YearStart([Date-TempDate]) = {"=sum(Eur)&amp;gt;0"}&amp;gt;} MonthsStart([Date-TempDate])) return Null for every year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be there is errors in syntax don know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 09:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122860#M457586</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122861#M457587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. the if-return is an expression and not a expression-string - it missed the single-quotes like: 'sum(Eur)'&lt;/P&gt;&lt;P&gt;2. the fieldname of Sales_varian&lt;STRONG&gt;t&lt;/STRONG&gt; missed the ending t - further you used month&lt;STRONG&gt;s&lt;/STRONG&gt;start() instead of monthstart()&lt;/P&gt;&lt;P&gt;3. the fieldname of Sales_varian&lt;STRONG&gt;t&lt;/STRONG&gt; missed the ending t&lt;/P&gt;&lt;P&gt;4. you used month&lt;STRONG&gt;s&lt;/STRONG&gt;start() instead of monthstart()&lt;/P&gt;&lt;P&gt;5. you used with yearstart() an expression as a fieldreference - further you used month&lt;STRONG&gt;s&lt;/STRONG&gt;start() instead of monthstart()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 09:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122861#M457587</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-01T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122862#M457588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. If i change quotes like: 'sum(Eur)', it return string sum(Eur) not value&lt;/P&gt;&lt;P&gt;2. return 0 for every year&lt;/P&gt;&lt;P&gt;3. return 0 for every year&lt;/P&gt;&lt;P&gt;4. in year where was sales return total number of month, not month with sales, for other years null&lt;/P&gt;&lt;P&gt;5. Count({&amp;lt; [Date-TempDate.autoCalendar.Year] = {"=sum(Eur)&amp;gt;0"}&amp;gt;} distinct MonthStart([Date-TempDate]))&lt;/P&gt;&lt;P&gt;in year where was sales return total number of month, not month with sales, for other years 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And by the way thank you for patience;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 10:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122862#M457588</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T10:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122863#M457589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide some screenshots from your datamodel, objects and expressions maybe your issues could be detect in this way. Further helpful would be a small example-application whereby I have currently no Sense available and could only help by using View but there are people here which could help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 10:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122863#M457589</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-10-01T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122864#M457590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;App example and Data model&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 12:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/122864#M457590</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2018-10-01T12:17:19Z</dc:date>
    </item>
  </channel>
</rss>

