<?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 DAX to sum only the partial sales of the previous year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184599#M115243</link>
    <description>&lt;P&gt;Dear, I need your help with a measure in DAX to sum only the partial sales of the previous year with the final objective to be able to compare in a label with the sales of the current year.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The cumulative for the first three months of the previous year (2022) is 238,487,695, then a measure is required that is capable of calculating it for comparison with YTD (2023). Obviously it must be dynamic to be able to always compare Sale Ytd /SamePeriod Last Ytd.&lt;/P&gt;&lt;P&gt;Thank you very much for your cooperation.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 16:49:53 GMT</pubDate>
    <dc:creator>JDU</dc:creator>
    <dc:date>2023-04-12T16:49:53Z</dc:date>
    <item>
      <title>DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184599#M115243</link>
      <description>&lt;P&gt;Dear, I need your help with a measure in DAX to sum only the partial sales of the previous year with the final objective to be able to compare in a label with the sales of the current year.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The cumulative for the first three months of the previous year (2022) is 238,487,695, then a measure is required that is capable of calculating it for comparison with YTD (2023). Obviously it must be dynamic to be able to always compare Sale Ytd /SamePeriod Last Ytd.&lt;/P&gt;&lt;P&gt;Thank you very much for your cooperation.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 16:49:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184599#M115243</guid>
      <dc:creator>JDU</dc:creator>
      <dc:date>2023-04-12T16:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184633#M115245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170780" data-lia-user-login="JDU" class="lia-mention lia-mention-user"&gt;JDU&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You just need a "DateTable" to Handle it with the measure below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE (
    [YourSalesMeasure],
    FILTER (
        ALL ( 'DateTable' ),
        DateTable[Year]
            = YEAR ( TODAY () ) - 1
            &amp;amp;&amp;amp; DateTable[Date] &amp;lt;= TODAY ()
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;If this answer solves your problem, give it a thumbs up and mark it as an accepted solution so the others would find what they need easier.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;Loran&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:01:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184633#M115245</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-12T17:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184676#M115250</link>
      <description>&lt;P&gt;Thank you Mohammad for the reply. I tried with the formula but it does not give any result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Question: Year in the sixth line is a function?&lt;BR /&gt;(Note: I am working with a calendar table).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:25:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184676#M115250</guid>
      <dc:creator>JDU</dc:creator>
      <dc:date>2023-04-12T17:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184698#M115252</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170780" data-lia-user-login="JDU" class="lia-mention lia-mention-user"&gt;JDU&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Sorry I did sth wrong. This should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE (
    [YourSalesMeasure],
    FILTER (
        ALL ( 'DateTable' ),
        DateTable[Year]
            = YEAR ( TODAY () ) - 1
            &amp;amp;&amp;amp; DateTable[Date] &amp;lt;= DATE(YEAR(TODAY()-1),MONTH(TODAY()),DAY(TODAY())
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AND yes YEAR is Function in your line 6.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:53:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184698#M115252</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-12T17:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184718#M115253</link>
      <description>&lt;P&gt;I have a problem with the DATEADD function, it does not recognize the function today.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:48:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184718#M115253</guid>
      <dc:creator>JDU</dc:creator>
      <dc:date>2023-04-12T17:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184723#M115255</link>
      <description>&lt;P&gt;My bad. Edited.&lt;/P&gt;&lt;P&gt;Btw your previous measure should returns an output as well. What is your [Total Ventas] Measure?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:54:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184723#M115255</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-12T17:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184962#M115274</link>
      <description>&lt;P&gt;I'm sure I'm doing something wrong, maybe there is a problem in the calendar table or in some measure, but I keep getting an error.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Regarding the Total Ventas measure, it is simply the sum of sales per month.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Ventas = sum(Hoja1[Ventas] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Apr 2023 21:31:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3184962#M115274</guid>
      <dc:creator>JDU</dc:creator>
      <dc:date>2023-04-12T21:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3185859#M115326</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170780" data-lia-user-login="JDU" class="lia-mention lia-mention-user"&gt;JDU&lt;/a&gt;&amp;nbsp;Please send the error of the visual.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 09:07:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3185859#M115326</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-13T09:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188472#M115538</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;It is in Spanish but basically what it says is that &lt;EM&gt;DAX comparison operations do not support comparison values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;img /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 11:47:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188472#M115538</guid>
      <dc:creator>JDU</dc:creator>
      <dc:date>2023-04-14T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188498#M115544</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170780" data-lia-user-login="JDU" class="lia-mention lia-mention-user"&gt;JDU&lt;/a&gt;&amp;nbsp;Hi again&lt;/P&gt;&lt;P&gt;I think the year column in your date table is in Text format.&lt;/P&gt;&lt;P&gt;Change its format or use CONVERT function.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:03:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188498#M115544</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-14T12:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188499#M115545</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170780" data-lia-user-login="JDU" class="lia-mention lia-mention-user"&gt;JDU&lt;/a&gt;&amp;nbsp;Hi again&lt;/P&gt;&lt;P&gt;I think the year column in your date table is in Text format.&lt;/P&gt;&lt;P&gt;Change its format or use CONVERT function.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:03:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188499#M115545</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-14T12:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188597#M115557</link>
      <description>&lt;P&gt;You were right, the problem was the format, however, what the function does is to add up all the previous year and what I need is to add up only the same period of time of this year to compare the percentage variation of sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:03:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188597#M115557</guid>
      <dc:creator>JDU</dc:creator>
      <dc:date>2023-04-14T13:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188645#M115563</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188645#M115563</guid>
      <dc:creator>JDU</dc:creator>
      <dc:date>2023-04-14T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to sum only the partial sales of the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188712#M115576</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170780" data-lia-user-login="JDU" class="lia-mention lia-mention-user"&gt;JDU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to edit this part of the code:&lt;/P&gt;&lt;P&gt;Instead of:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATE(YEAR(TODAY()-1),MONTH(TODAY()),DAY(TODAY())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Put the below then u get what you want:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Loran&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:52:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-sum-only-the-partial-sales-of-the-previous-year/m-p/3188712#M115576</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-14T13:52:15Z</dc:date>
    </item>
  </channel>
</rss>

