<?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: Table chart not refreshing following variable value change in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970233#M80050</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=if([Manager ID] = $(vUserPersonnelNumber),&amp;nbsp;[Personnel Number])&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 11:26:34 GMT</pubDate>
    <dc:creator>JHuis</dc:creator>
    <dc:date>2022-08-18T11:26:34Z</dc:date>
    <item>
      <title>Table chart not refreshing following variable value change</title>
      <link>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970173#M80043</link>
      <description>&lt;P&gt;Hi. I have several table charts that display data based on a variable value in a calculated dimension, eg:&lt;/P&gt;
&lt;P&gt;=if([Manager ID] = vUserPersonnelNumber,&amp;nbsp;[Personnel Number])&lt;/P&gt;
&lt;P&gt;If I change the variable value all charts automatically update to calculate with the new variable value. Except for one chart. I can't figure out why it is not updating like the others. The If statement is formulated in the same way. Is there a setting I can check that enables auto-refresh or something?&lt;/P&gt;
&lt;P&gt;If I refresh the browser the chart reloads to display correctly. So it is calculating fine, it just will not refresh after I change the variable value, even though the others will.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 09:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970173#M80043</guid>
      <dc:creator>Mike8</dc:creator>
      <dc:date>2022-08-18T09:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table chart not refreshing following variable value change</title>
      <link>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970233#M80050</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=if([Manager ID] = $(vUserPersonnelNumber),&amp;nbsp;[Personnel Number])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 11:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970233#M80050</guid>
      <dc:creator>JHuis</dc:creator>
      <dc:date>2022-08-18T11:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table chart not refreshing following variable value change</title>
      <link>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970610#M80078</link>
      <description>&lt;P&gt;Thanks, the $() makes the chart refresh, fixing this issue. But can anyone explain why this is not required on some other charts that refresh automatically?&lt;/P&gt;
&lt;P&gt;Here are the full dimension expressions for two table charts. One has $() and the other does not, but both refresh automatically. When the $() is taken out that chart will not refresh after a vUserPersonnelNumber variable value change, but the other charts will refresh.&lt;/P&gt;
&lt;P&gt;=if([Event Date]&amp;gt;=today()-14&lt;BR /&gt;and ( [Event Manager ID] = $(vUserPersonnelNumber) or ($(vDirectReports)=0 and [Event Senior Manager ID] = $(vUserPersonnelNumber)) )&lt;BR /&gt;,[Event Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=if ( [Employment Status] = 'Active'&lt;BR /&gt;and [Action Start Date] &amp;lt;= today() &lt;BR /&gt;and [Action End Date] &amp;gt;= today()&lt;BR /&gt;and ([%Manager ID] = vUserPersonnelNumber or (vDirectReports=0 and [%Senior Manager ID] = vUserPersonnelNumber))&lt;BR /&gt;and [Position Start Date] &amp;lt;= today() &lt;BR /&gt;and [Position End Date] &amp;gt;= today() &lt;BR /&gt;and [CC From Date] &amp;lt;= today() &lt;BR /&gt;and [CC To Date] &amp;gt;= today()&lt;BR /&gt;, [%Personnel Number])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it best practice to always use $() with variables in expressions?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 08:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970610#M80078</guid>
      <dc:creator>Mike8</dc:creator>
      <dc:date>2022-08-19T08:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table chart not refreshing following variable value change</title>
      <link>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970615#M80080</link>
      <description>&lt;P&gt;Dear Mike,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Its an indication to the qlik engine resolve the expression between the $() , replace with the resulting values, before evaluating the expression.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Magic-of-Dollar-Expansions/ba-p/1471979" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Magic-of-Dollar-Expansions/ba-p/1471979&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it best practice to always use $() with variables in expressions?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes., but it depends in the situation. I use variables more to make a filter on date or variabel input. So then you always need the $()&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 08:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1970615#M80080</guid>
      <dc:creator>JHuis</dc:creator>
      <dc:date>2022-08-19T08:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table chart not refreshing following variable value change</title>
      <link>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1972335#M80218</link>
      <description>&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 07:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-chart-not-refreshing-following-variable-value-change/m-p/1972335#M80218</guid>
      <dc:creator>Mike8</dc:creator>
      <dc:date>2022-08-24T07:56:39Z</dc:date>
    </item>
  </channel>
</rss>

