<?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: Expressions for Variable not saved in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514881#M105598</link>
    <description>&lt;P&gt;Hi, you can add the expression to a pivot table without label and check if the $-expansion is converted as you want, oyu can also copy from that label and paste as new expression to check what is not working.&lt;/P&gt;&lt;P&gt;Note that if the table has some date fields as dimension it will not affect the $-expansion, as it is expanded before the table calculations, so if you ahve a table with year dimension and values from 2020 to 2025, the min date will be 1/1/2020 for all the rows and the max date will be 31/12/2025 for all the rows.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Apr 2025 07:34:22 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2025-04-20T07:34:22Z</dc:date>
    <item>
      <title>Expressions for Variable not saved</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514878#M105595</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am calling a &lt;EM&gt;&lt;U&gt;variable&lt;/U&gt;&lt;/EM&gt; in a Straight table and in a Pivot Table. Pls refer below expression,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(match(&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Avg(Aggr(Sum({$&amp;lt;Year=, Month=, Day=,&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Date={"&amp;gt;=$(=date(monthstart(max(Date))))&amp;lt;=$(=date(max(Date)))"}&amp;gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Value),Code, Id)&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;, -1, -2) and&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;Rank(total Num(Avg(Aggr(Sum({$&amp;lt;Year=, Month=, Day=,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;Date={"&amp;gt;=$(=date(monthstart(max(Date))))&amp;lt;=$(=date(max(Date)))"}&amp;gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;Value),Code, Id),'#,##0%')&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;lt;=10, 2,&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Avg(Aggr(Sum({$&amp;lt;Year=, Month=, Day=,&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Date={"&amp;gt;=$(=date(monthstart(max(Date))))&amp;lt;=$(=date(max(Date)))"}&amp;gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Value),Code, Id)&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This variable converts the value from 0 and 1 to 2... for the top 10 records for the condition. I have noticed below conditions:&lt;/P&gt;&lt;P&gt;1. It is not saving and still the value is showing as 0 and 1 instead of 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If i add '=' in front of the expression, it is showing as -2 for all the values instead of 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls note, i am using Qlik Sense Desktop. November 2024 version.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 07:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514878#M105595</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2025-04-20T07:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions for Variable not saved</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514881#M105598</link>
      <description>&lt;P&gt;Hi, you can add the expression to a pivot table without label and check if the $-expansion is converted as you want, oyu can also copy from that label and paste as new expression to check what is not working.&lt;/P&gt;&lt;P&gt;Note that if the table has some date fields as dimension it will not affect the $-expansion, as it is expanded before the table calculations, so if you ahve a table with year dimension and values from 2020 to 2025, the min date will be 1/1/2020 for all the rows and the max date will be 31/12/2025 for all the rows.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 07:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514881#M105598</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-04-20T07:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions for Variable not saved</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514883#M105599</link>
      <description>&lt;P&gt;Thanks for the reply, with just the complete expression in a table is working fine. but calling it via variable is not working. if i add a space in the expression and then call the variable, it works. But after sometime it gets reset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls note, i do not have any date or Date related parameters. in the table. Just Id and Code as Dimension.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 08:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514883#M105599</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2025-04-20T08:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions for Variable not saved</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514933#M105604</link>
      <description>&lt;P&gt;Hi, sorry but "n&lt;SPAN&gt;ot working" is not enough info, what's exactly not working? Nothing is converted? some values changes? That's why I asked to try "&lt;SPAN&gt;add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to a pivot table without label and check if the $-expansion is converted as you want", to get more info about what's really not working.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I also don't get what "after sometime it gets reset" really means. The expression in the stored variable changes? The values on table?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also upload a sample with dummy data just to check how it's used.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 07:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2514933#M105604</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-04-21T07:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions for Variable not saved</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2530554#M107827</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you get this resolved?&amp;nbsp; I am having a very similar issue with the variables in my dashboard.&amp;nbsp; I updated the static comparison value in the variable, and this change is not reflected in the function expression that uses this variable in the chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 15:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-for-Variable-not-saved/m-p/2530554#M107827</guid>
      <dc:creator>marina65</dc:creator>
      <dc:date>2025-09-11T15:59:22Z</dc:date>
    </item>
  </channel>
</rss>

