<?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: Different behavior between variable editor and code editor in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Different-behavior-between-variable-editor-and-code-editor/m-p/1767251#M59362</link>
    <description>Hi,&lt;BR /&gt;At the end, I just use the vValue as $(vValue).&lt;BR /&gt;Regards,&lt;BR /&gt;Michael&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Dec 2020 09:50:29 GMT</pubDate>
    <dc:creator>stone1974</dc:creator>
    <dc:date>2020-12-09T09:50:29Z</dc:date>
    <item>
      <title>Different behavior between variable editor and code editor</title>
      <link>https://community.qlik.com/t5/App-Development/Different-behavior-between-variable-editor-and-code-editor/m-p/1767231#M59360</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have formulars to get a selected data and then the month before.&lt;/P&gt;&lt;P&gt;SET vSelectedDate = Date(GetFieldSelections([FiscalPeriods.CalendarYear]) &amp;amp;'-'&amp;amp; GetFieldSelections([FiscalPeriods.CalendarMonth]) &amp;amp;'-1');&lt;/P&gt;&lt;P&gt;SET vSelectedMonth = "$(=Num(Month($(vSelectedDate))))";&lt;/P&gt;&lt;P&gt;SET vSelectedMonthMinus1 = &amp;nbsp;"$(=Num(Month(AddMonths($(vSelectedDate),-1))))";&lt;/P&gt;&lt;P&gt;SET vSelectedYear = "$(=Num(Year($(vSelectedDate))))";&lt;/P&gt;&lt;P&gt;SET vSelectedYearMinus1 = "$(=Num(Year(AddMonths($(vSelectedDate),-1))))"&lt;/P&gt;&lt;P&gt;SET vValue = (Sum({$ &amp;lt;PLI.TEST={"TEST"}, [FiscalPeriods.CalendarYear]={$(vSelectedYear)}, [FiscalPeriods.CalendarMonth]={$(vSelectedMonth)}&amp;gt;} PLI.Value))&lt;/P&gt;&lt;P&gt;The code is working fine if I put it in the variable editor but if I put it into the code editor its not working anymore. WHY? Any hints r welcome &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;Thank u very much!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-behavior-between-variable-editor-and-code-editor/m-p/1767231#M59360</guid>
      <dc:creator>stone1974</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Different behavior between variable editor and code editor</title>
      <link>https://community.qlik.com/t5/App-Development/Different-behavior-between-variable-editor-and-code-editor/m-p/1767237#M59361</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31396"&gt;@stone1974&lt;/a&gt;&amp;nbsp; how do you use this variable in an editor ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 09:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-behavior-between-variable-editor-and-code-editor/m-p/1767237#M59361</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-12-09T09:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Different behavior between variable editor and code editor</title>
      <link>https://community.qlik.com/t5/App-Development/Different-behavior-between-variable-editor-and-code-editor/m-p/1767251#M59362</link>
      <description>Hi,&lt;BR /&gt;At the end, I just use the vValue as $(vValue).&lt;BR /&gt;Regards,&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2020 09:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-behavior-between-variable-editor-and-code-editor/m-p/1767251#M59362</guid>
      <dc:creator>stone1974</dc:creator>
      <dc:date>2020-12-09T09:50:29Z</dc:date>
    </item>
  </channel>
</rss>

