<?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 Add last 12 months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Add-last-12-months/m-p/1542513#M39144</link>
    <description>&lt;PRE&gt;&lt;SPAN&gt;Good afternoon, I need help with something, a while ago in the sense of a desk for the cats of the last 12 months. In other words, if I check
December 2018 = I must obtain the expenses from December 2017 until November 2018.
January 2019 = I must obtain expenses from January 2018 to December 2018 and so on every month.

Now I need help with something, I think it's a bit more complex, I need to add a condition for the calculation, let's say in January I had 9 different expenses, in February I had the same 9 expenses and 23 new expenses, in February the same ones mentioned above and 10 New expenses and so on.
What I need is to calculate the expenses of the last 12 months as long as the expenses have been made 12 or more times.

I add an excel file where I have
Expenditure
YEAR and MONTH in which the expenditure is made for the first time
YEAR and MONTH in which the expense was repeated.
DATE_REPETITION, is the column where the year and the month of repetition of spending is concatenated.
VALUE_GASTO
QUANTITY_MESES, is where I can see the amount of times the expense has been repeated.


As an example of what I should do, I put these two additional columns: where you see the formula of the bristles that add up.

Value that brings out common sense, is the value that shows me when making this formula:
Sum ({&amp;lt;N_YEAR, MONTH_RECUPERATION =, dateb = {"&amp;gt; = $ (= date (addmonths (max (dateb), - 12), 'YYYY-MM-DD')) &amp;lt;$ (= date (max (dateb) , 'YYYY-MM-DD')) "}&amp;gt;} If (CANT_MESES&amp;gt; = 12, RECOVERED))

Value that you should take out.


I hope to help me, because it is trying for several days to solve it.
I thank you all&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Feb 2019 19:25:14 GMT</pubDate>
    <dc:creator>leo_pulecio</dc:creator>
    <dc:date>2019-02-11T19:25:14Z</dc:date>
    <item>
      <title>Add last 12 months</title>
      <link>https://community.qlik.com/t5/App-Development/Add-last-12-months/m-p/1542513#M39144</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Good afternoon, I need help with something, a while ago in the sense of a desk for the cats of the last 12 months. In other words, if I check
December 2018 = I must obtain the expenses from December 2017 until November 2018.
January 2019 = I must obtain expenses from January 2018 to December 2018 and so on every month.

Now I need help with something, I think it's a bit more complex, I need to add a condition for the calculation, let's say in January I had 9 different expenses, in February I had the same 9 expenses and 23 new expenses, in February the same ones mentioned above and 10 New expenses and so on.
What I need is to calculate the expenses of the last 12 months as long as the expenses have been made 12 or more times.

I add an excel file where I have
Expenditure
YEAR and MONTH in which the expenditure is made for the first time
YEAR and MONTH in which the expense was repeated.
DATE_REPETITION, is the column where the year and the month of repetition of spending is concatenated.
VALUE_GASTO
QUANTITY_MESES, is where I can see the amount of times the expense has been repeated.


As an example of what I should do, I put these two additional columns: where you see the formula of the bristles that add up.

Value that brings out common sense, is the value that shows me when making this formula:
Sum ({&amp;lt;N_YEAR, MONTH_RECUPERATION =, dateb = {"&amp;gt; = $ (= date (addmonths (max (dateb), - 12), 'YYYY-MM-DD')) &amp;lt;$ (= date (max (dateb) , 'YYYY-MM-DD')) "}&amp;gt;} If (CANT_MESES&amp;gt; = 12, RECOVERED))

Value that you should take out.


I hope to help me, because it is trying for several days to solve it.
I thank you all&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Feb 2019 19:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-last-12-months/m-p/1542513#M39144</guid>
      <dc:creator>leo_pulecio</dc:creator>
      <dc:date>2019-02-11T19:25:14Z</dc:date>
    </item>
  </channel>
</rss>

