<?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 Variable in Class function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-in-Class-function/m-p/1538780#M38898</link>
    <description>&lt;P&gt;Is it possible to use variable as offset in Class function?&lt;/P&gt;&lt;P&gt;I create dimension:&lt;/P&gt;&lt;P&gt;=Class(&lt;BR /&gt;sales,&lt;BR /&gt;0.05,&lt;BR /&gt;'x',&lt;BR /&gt;$(vMinSales)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vMin&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;:&amp;nbsp;Min(Aggr(sum(sales), myDimension))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But it doesnt work - &lt;FONT color="#FF0000"&gt;Invalid dimension &lt;FONT color="#000000"&gt;error.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Feb 2019 11:43:44 GMT</pubDate>
    <dc:creator>Death4Free</dc:creator>
    <dc:date>2019-02-03T11:43:44Z</dc:date>
    <item>
      <title>Variable in Class function</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-in-Class-function/m-p/1538780#M38898</link>
      <description>&lt;P&gt;Is it possible to use variable as offset in Class function?&lt;/P&gt;&lt;P&gt;I create dimension:&lt;/P&gt;&lt;P&gt;=Class(&lt;BR /&gt;sales,&lt;BR /&gt;0.05,&lt;BR /&gt;'x',&lt;BR /&gt;$(vMinSales)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vMin&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;:&amp;nbsp;Min(Aggr(sum(sales), myDimension))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But it doesnt work - &lt;FONT color="#FF0000"&gt;Invalid dimension &lt;FONT color="#000000"&gt;error.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 11:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-in-Class-function/m-p/1538780#M38898</guid>
      <dc:creator>Death4Free</dc:creator>
      <dc:date>2019-02-03T11:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Class function</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-in-Class-function/m-p/1539074#M38909</link>
      <description>&lt;P&gt;Yes, it's possible but the variable must return a dimension or a value and not an expression. In your case I'm not sure that defining the fourth parameter will be very useful. Beside this the following might be what do you looking for:&lt;/P&gt;&lt;P&gt;Class(&lt;STRONG&gt;sum(&lt;/STRONG&gt;sales&lt;STRONG&gt;)&lt;/STRONG&gt;, 0.05, 'x', $(&lt;STRONG&gt;=&lt;/STRONG&gt;vMinSales))&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 12:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-in-Class-function/m-p/1539074#M38909</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-02-04T12:33:42Z</dc:date>
    </item>
  </channel>
</rss>

