<?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 Calculation within P() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculation-within-P/m-p/123593#M8571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a data island which I'm using as a date selection tool. I've got a set analysis which returns the average CSAT score for the selected month;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg({&amp;lt;Date_Year_Month=P(Reporting_Month)&amp;gt;} CSAT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_Year_Month is in the master calendar and Reporting_Month is the un-linked data table. How would I combine =addmonths(Reporting_Month,-1) with the P function to show me the average CSAT for the previous month? I thought something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg({&amp;lt;Date_Year_Month=P($(=AddMonths(Reporting_Month,-1)))&amp;gt;} CSAT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that doesn't do it. I've tried a handful of others and also referred to the help guide but without any luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2018 09:55:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-22T09:55:11Z</dc:date>
    <item>
      <title>Calculation within P()</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-within-P/m-p/123593#M8571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a data island which I'm using as a date selection tool. I've got a set analysis which returns the average CSAT score for the selected month;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg({&amp;lt;Date_Year_Month=P(Reporting_Month)&amp;gt;} CSAT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_Year_Month is in the master calendar and Reporting_Month is the un-linked data table. How would I combine =addmonths(Reporting_Month,-1) with the P function to show me the average CSAT for the previous month? I thought something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg({&amp;lt;Date_Year_Month=P($(=AddMonths(Reporting_Month,-1)))&amp;gt;} CSAT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that doesn't do it. I've tried a handful of others and also referred to the help guide but without any luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 09:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-within-P/m-p/123593#M8571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-22T09:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation within P()</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-within-P/m-p/123594#M8572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have a unique id number for each CSAT which I thought it might be possible to use like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg({$&amp;lt;feedback_id =P({1&amp;lt;Date_Year_Month={$(=addmonths(Reporting_Month,-1))}&amp;gt;}feedback_id)&amp;gt;}CSAT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still no luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 10:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-within-P/m-p/123594#M8572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-22T10:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation within P()</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-within-P/m-p/123595#M8573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer was; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;feedback_id=P({&amp;lt;Date_Year_Month={'$(=Date(AddMonths(Reporting_Month,-1), 'YYYY-MMM'))'}&amp;gt;} feedback_id)&amp;gt;} CSAT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone can see how to improve that expression please let me know &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 10:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-within-P/m-p/123595#M8573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-22T10:59:11Z</dc:date>
    </item>
  </channel>
</rss>

