<?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: Delay Dollar Sign Expand in User Defined Function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541344#M109337</link>
    <description>&lt;P&gt;Hi, thanks for the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although far from practical, it works, thanks!!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2026 19:12:55 GMT</pubDate>
    <dc:creator>pedrohenriqueperna</dc:creator>
    <dc:date>2026-01-22T19:12:55Z</dc:date>
    <item>
      <title>Delay Dollar Sign Expand in User Defined Function</title>
      <link>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541291#M109320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create defined functions to make some expressions more readable, but I can't find a workaround to not expand a $() using SET.&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET someFunction =

(Sum(Aggr({&amp;lt;store= {$1}&amp;gt;} Revenue, store)) / Aggr(NoDistinct Only({1&amp;lt;key_calendar = {"$(=Floor(vToday - 1))"}, store = {$1}&amp;gt;} growth_idx), store));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When this function is loaded, it expands the set analysis "$(=Floor...)" and returns blank, as expected. Is there a way to delay the expansion to the front end? I've tried multiple things, like using Chr(34) for the " and Chr(36) for the $. They all come as text tho.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 02:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541291#M109320</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2026-01-22T02:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delay Dollar Sign Expand in User Defined Function</title>
      <link>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541295#M109321</link>
      <description>&lt;P&gt;The best workaround for this, that i know, is to create a csv, excel file or similar containing the variable name and value. Then load that table into Qlik, and loop through each row and setting the variable name and expression using peek().&lt;/P&gt;&lt;P&gt;I did a quick search to find an example, you could look this comment by&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;: &lt;A href="https://community.qlik.com/t5/App-Development/Can-I-create-a-variable-that-holds-another-variable/td-p/2519136#M106193" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Can-I-create-a-variable-that-holds-another-variable/td-p/2519136#M106193&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 06:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541295#M109321</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2026-01-22T06:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delay Dollar Sign Expand in User Defined Function</title>
      <link>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541344#M109337</link>
      <description>&lt;P&gt;Hi, thanks for the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although far from practical, it works, thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 19:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541344#M109337</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2026-01-22T19:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delay Dollar Sign Expand in User Defined Function</title>
      <link>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541345#M109338</link>
      <description>&lt;P&gt;Can you give me an example based on the code I've provided?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried like this, but it did not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET func$ = $;

SET someFunction =

(Sum(Aggr({&amp;lt;store= {$1}&amp;gt;} Revenue, store)) / Aggr(NoDistinct Only({1&amp;lt;key_calendar = {"$(func$)(=Floor(vToday - 1))"}, store = {$1}&amp;gt;} growth_idx), store));&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Jan 2026 19:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Delay-Dollar-Sign-Expand-in-User-Defined-Function/m-p/2541345#M109338</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2026-01-22T19:24:59Z</dc:date>
    </item>
  </channel>
</rss>

