<?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: Variable issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-issue/m-p/1883694#M72764</link>
    <description>&lt;P&gt;Try it with:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;let vLastmonthdate2 =floor(monthend(addmonths(Today(),-1)));&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DateBridgeFlag={'Inventory'},Company_Code={215,240},[Inventory Type]={'RM\BOP','RM\BOP-Arya'},[Table Source_Inventory]={'WHUIL200'},[Invoice_Date_GMT_Updated]={"$(=floor(monthend(addmonths(Today(),-1))))"}&amp;gt;}Weight_Inventory)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 07:45:16 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-01-21T07:45:16Z</dc:date>
    <item>
      <title>Variable issue</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-issue/m-p/1883651#M72760</link>
      <description>&lt;P&gt;I am using the below variable in my measure and it works perfectly correct.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;let vLastmonthdate2 =floor(num(Date(floor(monthend(addmonths(Today(),-1))))));&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;My measure is&amp;nbsp;&lt;STRONG&gt;Sum({&amp;lt;DateBridgeFlag={'Inventory'},Company_Code={215,240},[Inventory Type]={'RM\BOP','RM\BOP-Arya'},[Table Source_Inventory]={'WHUIL200'},[Invoice_Date_GMT_Updated]={"$(vLastmonthdate2)"}&amp;gt;} Weight_Inventory)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I just put the value in place of variable, it is giving me wrong values&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DateBridgeFlag={'Inventory'},Company_Code={215,240},[Inventory Type]={'RM\BOP','RM\BOP-Arya'},[Table Source_Inventory]={'WHUIL200'},[Invoice_Date_GMT_Updated]={'=$(=(floor(num(Date(floor(monthend(addmonths(Today(),-1))))))))'}&amp;gt;}Weight_Inventory)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone please help me?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 05:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-issue/m-p/1883651#M72760</guid>
      <dc:creator>risabhroy_03</dc:creator>
      <dc:date>2022-01-21T05:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable issue</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-issue/m-p/1883694#M72764</link>
      <description>&lt;P&gt;Try it with:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;let vLastmonthdate2 =floor(monthend(addmonths(Today(),-1)));&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DateBridgeFlag={'Inventory'},Company_Code={215,240},[Inventory Type]={'RM\BOP','RM\BOP-Arya'},[Table Source_Inventory]={'WHUIL200'},[Invoice_Date_GMT_Updated]={"$(=floor(monthend(addmonths(Today(),-1))))"}&amp;gt;}Weight_Inventory)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 07:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-issue/m-p/1883694#M72764</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-01-21T07:45:16Z</dc:date>
    </item>
  </channel>
</rss>

