<?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 variable in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036333#M85384</link>
    <description>&lt;P&gt;vPeildatum = toady()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;the date selected in a date selector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I use $(VARIABLEDATE) as a measure it works, so I don't think the problem lays whitin the variable&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 07:32:15 GMT</pubDate>
    <dc:creator>Simon4</dc:creator>
    <dc:date>2023-02-10T07:32:15Z</dc:date>
    <item>
      <title>Dynamic variable in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036322#M85382</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a set analysis with a dynamic variable i cannot get working.&lt;/P&gt;
&lt;P&gt;variable:&amp;nbsp; VARIABLEDATE =&lt;/P&gt;
&lt;P&gt;AGGR(max(if(LOADDATE_POC&amp;lt;vPeildatum,LOADDATE_POC)),Mainproject_id)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use it in this formula:&lt;/P&gt;
&lt;P&gt;AGGR(only({&amp;lt;LOADDATE_POC = {'($(VARIABLEDATE))'},HasFinancialDoneDate = {'0'}&amp;gt;} Project_number),Mainproject_id)&lt;/P&gt;
&lt;P&gt;I get only NULL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I set another variable:&lt;/P&gt;
&lt;P&gt;test = 19-01-2023&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and use it in the formula the same:&lt;/P&gt;
&lt;P&gt;AGGR(only({&amp;lt;LOADDATE_POC = {'($(test))'},HasFinancialDoneDate = {'0'}&amp;gt;} Project_number),Mainproject_id)&lt;/P&gt;
&lt;P&gt;I do not get null values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;has this something to do with the fact that the variable is dynamically changing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. The variable differs per Mainproject_id&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 07:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036322#M85382</guid>
      <dc:creator>Simon4</dc:creator>
      <dc:date>2023-02-10T07:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036330#M85383</link>
      <description>&lt;P&gt;I notice you have a vPeildatum in your variable. Is that a variable or a field name? If its a variable then you should probably try to dollar expand it : $(vPeildatum).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 07:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036330#M85383</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-02-10T07:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036333#M85384</link>
      <description>&lt;P&gt;vPeildatum = toady()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;the date selected in a date selector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I use $(VARIABLEDATE) as a measure it works, so I don't think the problem lays whitin the variable&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 07:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036333#M85384</guid>
      <dc:creator>Simon4</dc:creator>
      <dc:date>2023-02-10T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036350#M85386</link>
      <description>&lt;P&gt;It is hard do know whats wrong without sitting down and examining the applikcation and variables, but try this expression.&lt;/P&gt;
&lt;P&gt;=AGGR(only({&amp;lt;LOADDATE_POC = {"=$(VARIABLEDATE)"},HasFinancialDoneDate = {'0'}&amp;gt;} Project_number),Mainproject_id)&lt;/P&gt;
&lt;P&gt;...and the VARIABLEDATE should probably look like this:&amp;nbsp; AGGR(max(if(LOADDATE_POC&amp;lt;$(vPeildatum),LOADDATE_POC)),Mainproject_id)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 08:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036350#M85386</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-02-10T08:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036960#M85426</link>
      <description>&lt;P&gt;change variable to below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VARIABLEDATE&amp;nbsp; &amp;nbsp; (&lt;U&gt;including the leading equal sign&lt;/U&gt;)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;max( &lt;STRONG&gt;TOTAL&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; AGGR(if(LOADDATE_POC&amp;lt;vPeildatum,LOADDATE_POC),Mainproject_id))&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 05:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-variable-in-set-analysis/m-p/2036960#M85426</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-02-13T05:25:18Z</dc:date>
    </item>
  </channel>
</rss>

