<?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 Using a variable in expressions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-a-variable-in-expressions/m-p/1634711#M47280</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a variable to calculate deppending on a field selected, this variable is named "Categoria".&lt;/P&gt;&lt;P&gt;I selected category "754" but using this function did not work.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;[SalesId]={"PV0***"},Catlevel2={$Categoria},CalendarYear_C = {"$(=max(CalendarYear_C)-1)"}&amp;gt;} Import_Brut)&lt;/LI-CODE&gt;&lt;P&gt;But If I put instead of Categoria the value 754, the calculation is correct.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;[SalesId]={"PV0***"},Catlevel2={"754"},CalendarYear_C = {"$(=max(CalendarYear_C)-1)"}&amp;gt;} Import_Brut)&lt;/LI-CODE&gt;&lt;P&gt;Thank's for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 08:01:46 GMT</pubDate>
    <dc:creator>ecabanas</dc:creator>
    <dc:date>2019-10-14T08:01:46Z</dc:date>
    <item>
      <title>Using a variable in expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-variable-in-expressions/m-p/1634711#M47280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a variable to calculate deppending on a field selected, this variable is named "Categoria".&lt;/P&gt;&lt;P&gt;I selected category "754" but using this function did not work.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;[SalesId]={"PV0***"},Catlevel2={$Categoria},CalendarYear_C = {"$(=max(CalendarYear_C)-1)"}&amp;gt;} Import_Brut)&lt;/LI-CODE&gt;&lt;P&gt;But If I put instead of Categoria the value 754, the calculation is correct.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;[SalesId]={"PV0***"},Catlevel2={"754"},CalendarYear_C = {"$(=max(CalendarYear_C)-1)"}&amp;gt;} Import_Brut)&lt;/LI-CODE&gt;&lt;P&gt;Thank's for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 08:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-variable-in-expressions/m-p/1634711#M47280</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2019-10-14T08:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-variable-in-expressions/m-p/1634780#M47290</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;You have to dollar expand your variable using $&lt;FONT color="#FF0000"&gt;(&lt;/FONT&gt;variable&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;. It seems as if you are missing the brackets.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;[SalesId]={"PV0***"},Catlevel2={$(Categoria)},CalendarYear_C = {"$(=max(CalendarYear_C)-1)"}&amp;gt;} Import_Brut)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mauritz&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 10:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-variable-in-expressions/m-p/1634780#M47290</guid>
      <dc:creator>Mauritz_SA</dc:creator>
      <dc:date>2019-10-14T10:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-variable-in-expressions/m-p/1634956#M47302</link>
      <description>&lt;P&gt;Thank's&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31029"&gt;@Mauritz_SA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GREAT!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 13:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-variable-in-expressions/m-p/1634956#M47302</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2019-10-14T13:56:46Z</dc:date>
    </item>
  </channel>
</rss>

