<?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: sum values of last months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1955364#M78784</link>
    <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good information.&lt;BR /&gt;I have read the whole post of "Te As Of Table", I have followed the instructions, but it continues to show me the same way, taking the distinct of each month and adding.&lt;/P&gt;
&lt;P&gt;Then I have done another test to see if the tables indicated in the Post are being loaded correctly and I see that there is a field that is not loading correctly.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_0-1657728032874.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84080i1F669D753BF3BD75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_0-1657728032874.png" alt="jvargasmayorga_0-1657728032874.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The "AsOfMonth" field is not loading good and that should be the same as "Month",&amp;nbsp;it should show the same values&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_1-1657728175243.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84081i3195E1C785D1298C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_1-1657728175243.png" alt="jvargasmayorga_1-1657728175243.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think I'm close to having the solution, I hope you can help me with this case.&lt;BR /&gt;Thanks for your time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 16:03:54 GMT</pubDate>
    <dc:creator>jvargasmayorga</dc:creator>
    <dc:date>2022-07-13T16:03:54Z</dc:date>
    <item>
      <title>sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1953575#M78640</link>
      <description>&lt;P&gt;Hello Community.&lt;BR /&gt;I have the following problem.&lt;BR /&gt;This is a sum of quantities table, grouped by time dimension (Year and Month)&lt;/P&gt;
&lt;P&gt;Cant. Trx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum(Cantidad_transito)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_0-1657313106603.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83704iF29A67A32B49D678/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_0-1657313106603.png" alt="jvargasmayorga_0-1657313106603.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I need now is to add the values of the last 3 months, but for each month.&lt;BR /&gt;For June: You must add the values of April, May and June&lt;BR /&gt;For February: You must add the values December 2021, January and February. Something like that:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_1-1657313132552.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83705i2E89A0BB35F8A8AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_1-1657313132552.png" alt="jvargasmayorga_1-1657313132552.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this sum I am having problems. I use the following formula and it gives me the wrong result (same as a simple sum)&lt;BR /&gt;Qty trx 3 Month =&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum({&amp;lt;Fecha_transito={"&amp;gt;=$(=MonthStart(AddMonths(Max(Fecha_transito),-2)))&amp;lt;=$(=MonthEnd(AddMonths(Max(Fecha_transito),0)))"}&amp;gt;} Cantidad_transito)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_2-1657313209217.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83706i63CA69DE9E4CB554/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_2-1657313209217.png" alt="jvargasmayorga_2-1657313209217.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using this formula (adding&amp;nbsp; TOTAL), it only considers the sum of the last 3 months and that result places it in all the same months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum({&amp;lt;Fecha_transito={"&amp;gt;=$(=MonthStart(AddMonths(Max(Fecha_transito),-2)))&amp;lt;=$(=MonthEnd(AddMonths(Max(Fecha_transito),0)))"}&amp;gt;} TOTAL Cantidad_transito)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_3-1657313228060.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83707i9B313C39F50DA8BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_3-1657313228060.png" alt="jvargasmayorga_3-1657313228060.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the solution would be like NOT considering the time dimension in the sum, but showing it each in its own time, it's very confusing, any idea how to solve it? Need this result.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_4-1657313261216.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83708iF0085925DE9A2FB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_4-1657313261216.png" alt="jvargasmayorga_4-1657313261216.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 20:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1953575#M78640</guid>
      <dc:creator>jvargasmayorga</dc:creator>
      <dc:date>2022-07-08T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1953617#M78644</link>
      <description>&lt;P&gt;Hi, set analysis is calcualted before the table, it creates the subset of values used to calulate the table, so it's not affected by dimension values when doing the filter, that's why it always takes the last 3 months.&lt;/P&gt;
&lt;P&gt;For that example you can use Before(), which retrieves the values of the previous columns, using TOTAL to ignore the dimensions above the last one, the 2nd parameter to start in the current row (0), and the 3rd paramater to tell how many columns to go back. All inside in a RangeSum() to sum all different values:&lt;/P&gt;
&lt;P&gt;RangeSum(Before(TOTAL Sum(Cantidad_transito),0,3))&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 07:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1953617#M78644</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-07-09T07:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1954190#M78691</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;BR /&gt;It works perfect for me to add quantities.&lt;/P&gt;
&lt;P&gt;But now I have a problem. I hope you can help me:&lt;/P&gt;
&lt;P&gt;This is the data table, I have by year, month and plate (placa).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_0-1657558474176.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83840i933AEB20F74D88EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_0-1657558474176.png" alt="jvargasmayorga_0-1657558474176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am adding "cantidad_transito" but making a distinction by "placa", I use the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum(aggr(only(Cantidad_transito),Placa,Año, Mes))&lt;/LI-CODE&gt;
&lt;P&gt;It shows me the following (good)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_1-1657558598877.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83843i30DE1DC4F10CC3F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_1-1657558598877.png" alt="jvargasmayorga_1-1657558598877.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now I want to make a sum of the last 2 months using distinct or only, it should have a result like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_2-1657558635142.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83844i130AC66A768D2900/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_2-1657558635142.png" alt="jvargasmayorga_2-1657558635142.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am using the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RangeSum(Before(TOTAL sum(aggr(only(Cantidad_transito),Placa,Año,Mes)),0,2))&lt;/LI-CODE&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RangeSum(Before(TOTAL sum(aggr(only(Cantidad_transito),Placa)),0,2))&lt;/LI-CODE&gt;
&lt;P&gt;And I can't get the result I want&lt;/P&gt;
&lt;P&gt;I hope you can help me.&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 17:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1954190#M78691</guid>
      <dc:creator>jvargasmayorga</dc:creator>
      <dc:date>2022-07-11T17:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1954384#M78711</link>
      <description>&lt;P&gt;Hi, that probably returns 7 (3 from may + 4 from jun) before only does the same calculation on the previous column, and to make the distinct count you need that each month acces the previous months on the same column.&lt;/P&gt;
&lt;P&gt;To do this tehere is a soluton using an asof table, this way each month(column) has acces to the previous months, and you can do a count distinct on the dataset:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Having that solution applied the expression could be something like&amp;nbsp;&lt;SPAN&gt;Count&lt;/SPAN&gt;&lt;SPAN&gt;(Distinct {$&amp;lt;MonthDiff={"&amp;lt;3"}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Placa&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 07:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1954384#M78711</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-07-12T07:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1955364#M78784</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good information.&lt;BR /&gt;I have read the whole post of "Te As Of Table", I have followed the instructions, but it continues to show me the same way, taking the distinct of each month and adding.&lt;/P&gt;
&lt;P&gt;Then I have done another test to see if the tables indicated in the Post are being loaded correctly and I see that there is a field that is not loading correctly.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_0-1657728032874.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84080i1F669D753BF3BD75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_0-1657728032874.png" alt="jvargasmayorga_0-1657728032874.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The "AsOfMonth" field is not loading good and that should be the same as "Month",&amp;nbsp;it should show the same values&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_1-1657728175243.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84081i3195E1C785D1298C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_1-1657728175243.png" alt="jvargasmayorga_1-1657728175243.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think I'm close to having the solution, I hope you can help me with this case.&lt;BR /&gt;Thanks for your time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 16:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1955364#M78784</guid>
      <dc:creator>jvargasmayorga</dc:creator>
      <dc:date>2022-07-13T16:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1955393#M78785</link>
      <description>&lt;P&gt;Hi, you can try adding asofmonth as the vertical dimension, you can split it in 2 fields to show year and month.&lt;/P&gt;
&lt;P&gt;Each AsOfMonth has access to the previos months, so in june 2022 Jun is the only asofMonth related, the other months will have differnts asofmonths related, that's why it shows as null.&lt;/P&gt;
&lt;P&gt;The backdraw of this technique is that you need to use the asofmonth calendar fields as dimensions&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 17:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1955393#M78785</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-07-13T17:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1965377#M79562</link>
      <description>&lt;P&gt;Hello. I tried as you indicated, and I can't get the result. I thought I was close to the solution, I see it more difficult.&lt;BR /&gt;Do you have any other way to do it? I have several weeks trying. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 17:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1965377#M79562</guid>
      <dc:creator>jvargasmayorga</dc:creator>
      <dc:date>2022-08-05T17:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1965494#M79570</link>
      <description>&lt;P&gt;Hi, if you can upload a sample with some dummy data that represents the issue you have, I can take a look to create the expression.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2022 10:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1965494#M79570</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-08-06T10:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1966110#M79639</link>
      <description>&lt;P&gt;OK thank you for your time. I'll try to explain the best I can.&lt;/P&gt;
&lt;P&gt;The initial context is as follows. I have a Fact, where I have a transit detail for each vehicle, the date, time, vehicle plate and the place of transit are recorded.&lt;BR /&gt;So the indicators that I have to show are:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;A)&lt;/STRONG&gt; Number of "vehicle plates" that travel each month -&amp;gt; It is like doing a Select distinct "vehicle plate" by year and month.&lt;/P&gt;
&lt;P&gt;I use this formula.&amp;nbsp;This works fine. No problem&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":call_me_hand:"&gt;🤙&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum(aggr(only(Cantidad_transito),PlacaVehiculo,[Año transito], Mes_transito))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_0-1659979091151.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86253i870E3A79BD1416F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_0-1659979091151.png" alt="jvargasmayorga_0-1659979091151.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;B) Number of "vehicle plates" that traveled in the last 3 months&lt;/STRONG&gt; -&amp;gt; It is like doing a Select dinstinct "vehicle plate" where Month &amp;lt;= "current month" and Month &amp;gt;= "3 months before".&amp;nbsp; (Here's tjhe problem)&lt;/P&gt;
&lt;P&gt;For example:&lt;BR /&gt;March =&amp;gt; Number of plates (distinct) from March, February, January&lt;BR /&gt;February =&amp;gt; Number of plates (distinct) of February, January, December&lt;BR /&gt;January =&amp;gt; Number of plates (distinct) of January, December, November.&lt;/P&gt;
&lt;P&gt;I tried whit the nexts formulas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count(Distinct {$&amp;lt;MonthDiff={"&amp;lt;3"}&amp;gt;} PlacaVehiculo)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;sum({&amp;lt;Fecha_transito={"&amp;gt;=$(=MonthStart(AddMonths(Max(Fecha_transito),-2)))&amp;lt;=$(=MonthEnd(AddMonths(Max(Fecha_transito),0)))"}&amp;gt;} TOTAL Cantidad_transito)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;sum( aggr( rangesum( above( sum(aggr(only(Cantidad_transito),PlacaVehiculo,[Año transito], Mes_transito)),0,2) ),Mes_transito))&lt;/LI-CODE&gt;
&lt;P&gt;And it doesn't do the calculation correctly.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvargasmayorga_1-1659980935360.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86254i5F50BBEA206A52FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvargasmayorga_1-1659980935360.png" alt="jvargasmayorga_1-1659980935360.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BEst Regards&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 17:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1966110#M79639</guid>
      <dc:creator>jvargasmayorga</dc:creator>
      <dc:date>2022-08-08T17:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1966626#M79671</link>
      <description>&lt;P&gt;Hi, in the asogf table try adding fields for year and month:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[As-Of Calendar]:
Load Month,
  AsOfMonth,
  Year(AsOfMonth) as AOYear,
  Month(AsOfMonth) as AOMonth,
  Round((AsOfMonth-Month)*12/365.2425) as MonthDiff,
  Year(AsOfMonth)-Year(Month) as YearDiff
  Resident tmpAsOfCalendar
      Where AsOfMonth &amp;gt;= Month;&lt;/LI-CODE&gt;
&lt;P&gt;And instead of Año_Transito and Mes_Transito use this new fields as dimensions (AOYear and AOMonth).&lt;/P&gt;
&lt;P&gt;With this the expression&amp;nbsp;Count(Distinct {$&amp;lt;MonthDiff={"&amp;lt;3"}&amp;gt;} PlacaVehiculo) should work.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 15:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1966626#M79671</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-08-09T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: sum values of last months</title>
      <link>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1966782#M79677</link>
      <description>&lt;P&gt;hello.&lt;BR /&gt;I did what you indicated and it seems to be ready, when I do the validation there are few records that do not match. I will review the data now, to confirm if it is ok. But you helped me a lot.&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 21:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-values-of-last-months/m-p/1966782#M79677</guid>
      <dc:creator>jvargasmayorga</dc:creator>
      <dc:date>2022-08-09T21:00:43Z</dc:date>
    </item>
  </channel>
</rss>

