<?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: Trying to create a measure for previous month data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trying-to-create-a-measure-for-previous-month-data/m-p/2130255#M91902</link>
    <description>&lt;P&gt;Can you bypass Month field in&amp;nbsp;&lt;SPAN&gt;Previous_month metric&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 08:30:42 GMT</pubDate>
    <dc:creator>anat</dc:creator>
    <dc:date>2023-10-20T08:30:42Z</dc:date>
    <item>
      <title>Trying to create a measure for previous month data</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-create-a-measure-for-previous-month-data/m-p/2130229#M91897</link>
      <description>&lt;P&gt;Actually I am trying to create a measure for &amp;nbsp;pricing based on current month , previous month and same month last year. I have used the following syntaxes :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This_month = avg({&amp;lt;Month={$(=Month)}, Year={$(=Year)}&amp;gt;} Unit_Price_KG)&lt;/P&gt;
&lt;P&gt;Previous_month = avg({&amp;lt;Month = {"=$(=Month - 1)"}, Year = {"=$(=Year)"}&amp;gt;} Unit_Price_KG)&lt;/P&gt;
&lt;P&gt;same_month_last_year = avg({&amp;lt;Month={$(=Month)}, Year={$(=Year-1)}&amp;gt;} Unit_Price_KG)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The measure "this_month" and "same_month_last_year" is working. The measure for "Previous_month " is not working and is reflecting the data for the current month.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 07:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-create-a-measure-for-previous-month-data/m-p/2130229#M91897</guid>
      <dc:creator>Rahul__FCE</dc:creator>
      <dc:date>2023-10-20T07:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a measure for previous month data</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-create-a-measure-for-previous-month-data/m-p/2130255#M91902</link>
      <description>&lt;P&gt;Can you bypass Month field in&amp;nbsp;&lt;SPAN&gt;Previous_month metric&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 08:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-create-a-measure-for-previous-month-data/m-p/2130255#M91902</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2023-10-20T08:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a measure for previous month data</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-create-a-measure-for-previous-month-data/m-p/2130310#M91904</link>
      <description>&lt;P&gt;Sorry , I did not understand. Could you please elaborate&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 10:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-create-a-measure-for-previous-month-data/m-p/2130310#M91904</guid>
      <dc:creator>Rahul__FCE</dc:creator>
      <dc:date>2023-10-20T10:12:21Z</dc:date>
    </item>
  </channel>
</rss>

