<?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 Set Expression formula variable not resolving in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Expression-formula-variable-not-resolving/m-p/1590914#M43388</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set x = "=max(YR)";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set y = num( round( Sum( {&amp;lt;YR={$(x)}, [fak]={1}&amp;gt;} [price]), 1), '#.##0');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I set these variables in a script. The problem is, when is enter this formula directly in a diagramm it works fine, but if i use the variable $(y) nothing happens. A look to the evaluated formula within Sense shows following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;num( round( Sum( {&amp;lt;YR={=max(YR)}, [fak]={1}&amp;gt;} [price]), 1), '#.##0');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But it should be:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;num( round( Sum( {&amp;lt;YR={2019}, [fak]={1}&amp;gt;} [price]), 1), '#.##0');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already tried serveral combinations which i found in the qlik community, but nothing seems to work.&lt;/P&gt;&lt;P&gt;Does anyone know how to solve this issue? Or do i have to create the formulas with in the variable editor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:41:04 GMT</pubDate>
    <dc:creator>Tos</dc:creator>
    <dc:date>2024-11-16T20:41:04Z</dc:date>
    <item>
      <title>Set Expression formula variable not resolving</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-formula-variable-not-resolving/m-p/1590914#M43388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set x = "=max(YR)";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set y = num( round( Sum( {&amp;lt;YR={$(x)}, [fak]={1}&amp;gt;} [price]), 1), '#.##0');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I set these variables in a script. The problem is, when is enter this formula directly in a diagramm it works fine, but if i use the variable $(y) nothing happens. A look to the evaluated formula within Sense shows following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;num( round( Sum( {&amp;lt;YR={=max(YR)}, [fak]={1}&amp;gt;} [price]), 1), '#.##0');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But it should be:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;num( round( Sum( {&amp;lt;YR={2019}, [fak]={1}&amp;gt;} [price]), 1), '#.##0');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already tried serveral combinations which i found in the qlik community, but nothing seems to work.&lt;/P&gt;&lt;P&gt;Does anyone know how to solve this issue? Or do i have to create the formulas with in the variable editor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-formula-variable-not-resolving/m-p/1590914#M43388</guid>
      <dc:creator>Tos</dc:creator>
      <dc:date>2024-11-16T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression formula variable not resolving</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-formula-variable-not-resolving/m-p/1590920#M43389</link>
      <description>&lt;P&gt;Look at the following threads to see the way to avoid dollar sign expansion in the script&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Creating-Analytics/Expression-as-a-variable-with-sign-expansion/td-p/1121153" target="_blank" rel="noopener"&gt;Expression as a variable with $-sign expansion&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Stop-Dollar-Sign-Expansion-in-the-script-Escape-Character/td-p/169162" target="_blank" rel="noopener"&gt;Stop Dollar Sign Expansion in the script&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-formula-variable-not-resolving/m-p/1590920#M43389</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-12T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression formula variable not resolving</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-formula-variable-not-resolving/m-p/1590987#M43395</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Answer 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET variable = '= only({$&amp;lt;Sales={"' &amp;amp; '$' &amp;amp; '(#=max(Sales))"}&amp;gt;} Town)';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Answer 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;set vTodayString = "~(Today());&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;set vToday = "=replace([vTodayString],'~','$')";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both answers did it for me.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 12:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-formula-variable-not-resolving/m-p/1590987#M43395</guid>
      <dc:creator>Tos</dc:creator>
      <dc:date>2019-06-12T12:32:44Z</dc:date>
    </item>
  </channel>
</rss>

