<?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: Calculation Enigma in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4720207#M180773</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828752" data-lia-user-login="BrianNeedsHelp" class="lia-mention lia-mention-user"&gt;BrianNeedsHelp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has your issue been resolved? If a community member's response addressed your query, please consider marking it as Accepted Answer and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;If you have any further questions, feel free to reach out.&lt;BR /&gt;Thank you for being a valued member of the Microsoft Fabric Community Forum!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 18:12:03 GMT</pubDate>
    <dc:creator>v-aatheeque</dc:creator>
    <dc:date>2025-06-04T18:12:03Z</dc:date>
    <item>
      <title>Calculation Enigma</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4714500#M180578</link>
      <description>&lt;P&gt;I compute this year's daily goals based on last year/same month.&amp;nbsp; I get previous year like this- 364 days previous is the same weekday so it aligns properly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PYGA1=CALCULATE( 'Subscriber Activity'[Gross Adds],DATEADD('Calendar'[Calendar Date],-364,DAY)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Works great except then end of the month numbers are higher than they should be because it's calculating last year's first of the month on the last day of the month.&amp;nbsp; To correct it I did this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PYGA1 = IF('Calendar'[EndofMOnth]=DAY(SELECTEDVALUE('Calendar'[Calendar Date])),CALCULATE( 'Subscriber Activity'[Gross Adds],DATEADD('Calendar'[Calendar Date],-371,DAY)),CALCULATE( 'Subscriber Activity'[Gross Adds],DATEADD('Calendar'[Calendar Date],-364,DAY)))&lt;/LI-CODE&gt;&lt;P&gt;It adjusts the last day of the month, but the total adds up to the same as it did when there was just the -364 measure.&amp;nbsp; So the PYALLGAs1 is showing the same total as it did in the first measure so it doesn't adjust each day higher like it should.&amp;nbsp; The goal for each day stays the same.&amp;nbsp; Not sure how this is even possible?&amp;nbsp; Any help greatly appreciated&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PYALLGAs1 = CALCULATE([PYGA1],

ALL('MyCalendar'[Date]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;GAGOAL = [PYGA1]/[PYALLGAs1]*[LocQuota1]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;So the essential problem is that the sum 15,457 is not correct.&amp;nbsp; If i export this and add it up it comes to 15,227.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 16:17:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4714500#M180578</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2025-05-30T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Enigma</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4714806#M180588</link>
      <description>&lt;P&gt;Try using parallelperoid('Calendar'[Calendar Date], -1, year )&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 22:38:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4714806#M180588</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-05-30T22:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Enigma</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4720207#M180773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828752" data-lia-user-login="BrianNeedsHelp" class="lia-mention lia-mention-user"&gt;BrianNeedsHelp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has your issue been resolved? If a community member's response addressed your query, please consider marking it as Accepted Answer and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;If you have any further questions, feel free to reach out.&lt;BR /&gt;Thank you for being a valued member of the Microsoft Fabric Community Forum!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 18:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4720207#M180773</guid>
      <dc:creator>v-aatheeque</dc:creator>
      <dc:date>2025-06-04T18:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Enigma</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4720257#M180777</link>
      <description>&lt;P&gt;Tried parallel period but it put and astronomical number in each row. But I finally got the PYGA1 column to add up correctly by inputting another measure:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUMX(SUMMARIZE(MyCalendar,MyCalendar[Date]),CALCULATE(SUMX(MyCalendar,[PYGA1])))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Jun 2025 19:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4720257#M180777</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2025-06-04T19:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Enigma</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4721838#M180852</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828752" data-lia-user-login="BrianNeedsHelp" class="lia-mention lia-mention-user"&gt;BrianNeedsHelp&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for the update, and well done on resolving the issue with the SUMX(SUMMARIZE(...)) approach and effective way to ensure the daily values aggregate correctly, especially when adjusting for edge cases like end-of-month alignment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If everything looks good on your end now, we’d appreciate it if you could mark your solution as Accepted. This helps other users who may face similar challenges find guidance more easily.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Feel free to reach out if you need further assistance or want to explore additional improvements we are happy to help!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 17:04:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Enigma/m-p/4721838#M180852</guid>
      <dc:creator>v-aatheeque</dc:creator>
      <dc:date>2025-06-05T17:04:10Z</dc:date>
    </item>
  </channel>
</rss>

