<?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: Comparativo de ventas acumuladas mes actual vs ventas acumuladas mismo dia mes anterior in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2920365#M95756</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="411236" data-lia-user-login="rmoralesl1989" class="lia-mention lia-mention-user"&gt;rmoralesl1989&lt;/a&gt; , Try like below with date table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumm Sales = &lt;BR /&gt;Var _max =max('Date'[date])&lt;BR /&gt;return &lt;BR /&gt;CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] &amp;lt;= _max))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cumm Sales same day previous month = &lt;BR /&gt;Var _max1 =max('Date'[date])&lt;BR /&gt;Var _max = date(year(_max1) , month(_max1)-1, day(_max1))&lt;BR /&gt;return &lt;BR /&gt;CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] &amp;lt;= _max))&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 04:21:32 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-11-22T04:21:32Z</dc:date>
    <item>
      <title>Comparativo de ventas acumuladas mes actual vs ventas acumuladas mismo dia mes anterior</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2919258#M95700</link>
      <description>&lt;P&gt;Hola a todos,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estoy teniendo problemas para poder crear una medida que me devuelvas las ventas acumuladas al mismo dia de mi mes actual versus el mismo dia del mes anterior. Tengo una medida creada de esta forma:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Ventas Acumuladas Mismo dia Mes pasado = CALCULATE(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;CALCULATE(TOTALMTD([Total Ventas],CALENDARIO[Date]), &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;DATEADD(FILTER(DATESMTD(CALENDARIO[Date]), &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;CALENDARIO[Date] &amp;lt;= TODAY()&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;), &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;-1, MONTH&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;), FILTER(CALENDARIO, &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;CALENDARIO[Date] &amp;lt;= TODAY()&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pero siempre me devuelve las ventas del mes pasado a mes cerrado y las necesito al mismo dia que mis datos se actualizan, siempre llevo un dia de desfase, es decir las ventas del 20 de noviembre 2022 las estoy viendo hoy. Alguien me puede apoyar en que estoy haciendo mal y como deberia ser la medida?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Saludos&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 15:58:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2919258#M95700</guid>
      <dc:creator>rmoralesl1989</dc:creator>
      <dc:date>2022-11-21T15:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparativo de ventas acumuladas mes actual vs ventas acumuladas mismo dia mes anterior</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2920365#M95756</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="411236" data-lia-user-login="rmoralesl1989" class="lia-mention lia-mention-user"&gt;rmoralesl1989&lt;/a&gt; , Try like below with date table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumm Sales = &lt;BR /&gt;Var _max =max('Date'[date])&lt;BR /&gt;return &lt;BR /&gt;CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] &amp;lt;= _max))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cumm Sales same day previous month = &lt;BR /&gt;Var _max1 =max('Date'[date])&lt;BR /&gt;Var _max = date(year(_max1) , month(_max1)-1, day(_max1))&lt;BR /&gt;return &lt;BR /&gt;CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] &amp;lt;= _max))&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 04:21:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2920365#M95756</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-22T04:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparativo de ventas acumuladas mes actual vs ventas acumuladas mismo dia mes anterior</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2920662#M95770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="411236" data-lia-user-login="rmoralesl1989" class="lia-mention lia-mention-user"&gt;rmoralesl1989&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I create a sample to have a test by your code. I think it returns correct result if you want to get cumulative sales before same day last month.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can download my sample and compare it with yours. If my reply still couldn't help you solve your issue, please share a sample and show me a screenshot with the result you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 07:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2920662#M95770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T07:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comparativo de ventas acumuladas mes actual vs ventas acumuladas mismo dia mes anterior</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2922231#M95855</link>
      <description>&lt;P&gt;Hi, thanks for ur answer&lt;/P&gt;&lt;P&gt;It didn't work that way, I had to do it like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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>Tue, 22 Nov 2022 16:20:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2922231#M95855</guid>
      <dc:creator>rmoralesl1989</dc:creator>
      <dc:date>2022-11-22T16:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparativo de ventas acumuladas mes actual vs ventas acumuladas mismo dia mes anterior</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2922240#M95856</link>
      <description>&lt;P&gt;&lt;BR /&gt;This solution works only if a date filter is applied at the visualization level. Since the data is updated daily with a day of delay, I want the measure to calculate the last month automatically without the need for a filter. I had to do it this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR FechaMaxima = MaxDate (&lt;SPAN&gt;translated to English)&lt;BR /&gt;VAR FechaMinima = MinDate&amp;nbsp;(translated to English)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Total RI = Total Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;Thank you very much for the help&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 16:26:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparativo-de-ventas-acumuladas-mes-actual-vs-ventas-acumuladas/m-p/2922240#M95856</guid>
      <dc:creator>rmoralesl1989</dc:creator>
      <dc:date>2022-11-22T16:26:01Z</dc:date>
    </item>
  </channel>
</rss>

