<?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: Set analysis in script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-script/m-p/1860416#M70992</link>
    <description>&lt;P&gt;the load script tries to evaluate the dollar sign expanded.&amp;nbsp; you can have placeholder characters and use replace, but it's cleaner and easier to manage use this nifty trick using mapping load + mapsubstring&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;mapping_specialchars:&lt;BR /&gt;mapping load * inline [&lt;BR /&gt;from, to&lt;BR /&gt;@, $&lt;BR /&gt;|, '&lt;BR /&gt;]&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let vMyformula=mapsubstring('mapping_specialchars', 'Sum({&amp;lt;Year={@(=MAX({$&amp;lt;[Sales] -= {|=(NULL())|} &amp;gt;}Year))}&amp;gt;}[Sales])');&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 11:36:03 GMT</pubDate>
    <dc:creator>stevejoyce</dc:creator>
    <dc:date>2021-11-17T11:36:03Z</dc:date>
    <item>
      <title>Set analysis in script</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-script/m-p/1860399#M70990</link>
      <description>&lt;P&gt;I try to load a variable defined as:&lt;/P&gt;
&lt;P&gt;Set vMyformula="Sum({&amp;lt;Year={$(=MAX({$&amp;lt;[Sales] -= {'=(NULL())'} &amp;gt;}Year))}&amp;gt;}[Sales])";&lt;/P&gt;
&lt;P&gt;When I call this variable with $(vMyformula) in a table it returns&amp;nbsp; Sum({&amp;lt;Year={}&amp;gt;}[Sales]). The expected result would be Sum({&amp;lt;Year={2020}&amp;gt;}[Sales]).&lt;/P&gt;
&lt;P&gt;If I copy and paste the formula itself&amp;nbsp; (Sum(....)) into the expression editor it works as expected.&lt;/P&gt;
&lt;P&gt;I would appreciate any guidance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-script/m-p/1860399#M70990</guid>
      <dc:creator>jelindbe</dc:creator>
      <dc:date>2021-11-30T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in script</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-script/m-p/1860416#M70992</link>
      <description>&lt;P&gt;the load script tries to evaluate the dollar sign expanded.&amp;nbsp; you can have placeholder characters and use replace, but it's cleaner and easier to manage use this nifty trick using mapping load + mapsubstring&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;mapping_specialchars:&lt;BR /&gt;mapping load * inline [&lt;BR /&gt;from, to&lt;BR /&gt;@, $&lt;BR /&gt;|, '&lt;BR /&gt;]&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let vMyformula=mapsubstring('mapping_specialchars', 'Sum({&amp;lt;Year={@(=MAX({$&amp;lt;[Sales] -= {|=(NULL())|} &amp;gt;}Year))}&amp;gt;}[Sales])');&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 11:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-script/m-p/1860416#M70992</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-11-17T11:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in script</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-script/m-p/1860421#M70993</link>
      <description>&lt;P&gt;That one did the trick! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 11:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-script/m-p/1860421#M70993</guid>
      <dc:creator>jelindbe</dc:creator>
      <dc:date>2021-11-17T11:50:14Z</dc:date>
    </item>
  </channel>
</rss>

