<?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: Apply Month Calculation to Row Without Changing Month Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4265878#M169065</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490030" data-lia-user-login="Irwan" class="lia-mention lia-mention-user"&gt;Irwan&lt;/a&gt;&amp;nbsp;It looks like it would work, but it will always apply the logic to the row instead of the overall month.&amp;nbsp; For now I just put in a parameter and adjust the % manually based on what is in the overall month change Card.&amp;nbsp; &amp;nbsp;Thx for replying-if you figure out another way please let me know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 16:25:05 GMT</pubDate>
    <dc:creator>BrianNeedsHelp</dc:creator>
    <dc:date>2024-10-31T16:25:05Z</dc:date>
    <item>
      <title>Apply Month Calculation to Row Without Changing Month Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4264471#M169017</link>
      <description>&lt;P&gt;I have this measure:&amp;nbsp;&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;&lt;LI-CODE lang="markup"&gt;MonthChange = sumx(VALUES('Calendar'[Month Year]),[Gross Adds]- CALCULATE([Gross Adds],SAMEPERIODLASTYEAR('Calendar'[Calendar Date])))/sumx(VALUES('Calendar'[Month Year]),[Gross Adds]) &lt;/LI-CODE&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;The result gives me an overall % change for the month compared to last year as -.11%.&amp;nbsp; I wanting to multiply the -.11% to PYSalesByWeek measure.&amp;nbsp; However [Month Change] will compute by row instead of overall month.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Applied = [PYSalesByWeek]+([MonthChange]*[PYSalesByWeek])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wanting to remain at -.11.&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;instead of -.08 and -.1.32, respectively.&amp;nbsp; &amp;nbsp; How to accomplish?&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;PYSalesByWeek&lt;/TD&gt;&lt;TD&gt;Week Ending Date&lt;/TD&gt;&lt;TD&gt;Gross Adds&lt;/TD&gt;&lt;TD&gt;MonthChange&lt;/TD&gt;&lt;TD&gt;% Applied&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2948&lt;/TD&gt;&lt;TD&gt;10/27/2024 0:00&lt;/TD&gt;&lt;TD&gt;2722&lt;/TD&gt;&lt;TD&gt;-0.08&lt;/TD&gt;&lt;TD&gt;2716.23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2911&lt;/TD&gt;&lt;TD&gt;11/3/2024 0:00&lt;/TD&gt;&lt;TD&gt;749&lt;/TD&gt;&lt;TD&gt;-1.32&lt;/TD&gt;&lt;TD&gt;-921.10&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 30 Oct 2024 19:52:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4264471#M169017</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2024-10-30T19:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Month Calculation to Row Without Changing Month Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4264625#M169021</link>
      <description>&lt;P&gt;hello&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;i think you need to add ALL('table') in your measure so the result will calculate all data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 00:17:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4264625#M169021</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2024-10-31T00:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Month Calculation to Row Without Changing Month Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4265357#M169043</link>
      <description>&lt;P&gt;Hello&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;BR /&gt;Can you modify the % Applied measure with below code.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Applied = 
VAR OverallMonthChange = CALCULATE([MonthChange], REMOVEFILTERS('Calendar'[Calendar Date]))
RETURN [PYSalesByWeek] + (OverallMonthChange * [PYSalesByWeek])&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;sanalytics&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If it is your solution then please like and accept it as solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 09:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4265357#M169043</guid>
      <dc:creator>sanalytics</dc:creator>
      <dc:date>2024-10-31T09:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Month Calculation to Row Without Changing Month Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4265878#M169065</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490030" data-lia-user-login="Irwan" class="lia-mention lia-mention-user"&gt;Irwan&lt;/a&gt;&amp;nbsp;It looks like it would work, but it will always apply the logic to the row instead of the overall month.&amp;nbsp; For now I just put in a parameter and adjust the % manually based on what is in the overall month change Card.&amp;nbsp; &amp;nbsp;Thx for replying-if you figure out another way please let me know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 16:25:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4265878#M169065</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2024-10-31T16:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Month Calculation to Row Without Changing Month Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4266628#M169114</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;， hello&amp;nbsp;sanalytics and&amp;nbsp;Irwan&amp;nbsp;, thank you for your prompt reply!&lt;BR /&gt;&lt;BR /&gt;Please try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% Applied = 
VAR OverallMonthChange = 
    CALCULATE(
        SUMX(VALUES('Calendar'[Month Year]), [Gross Adds] - CALCULATE([Gross Adds], SAMEPERIODLASTYEAR('Calendar'[Calendar Date]))) 
        / SUMX(VALUES('Calendar'[Month Year]), [Gross Adds]),
        ALL('Calendar'[Calendar Date])  
    )
RETURN 
[PYSalesByWeek] + (OverallMonthChange * [PYSalesByWeek])
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 08:36:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4266628#M169114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-01T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Month Calculation to Row Without Changing Month Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4267070#M169156</link>
      <description>&lt;P&gt;Perhaps I can explain it better with the table:&amp;nbsp; The formula you have will return different % based on the row.&amp;nbsp; Let's exclude the calculation you have in the Return and just Return Overall Month Change like I have below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;PYSalesByWeek&lt;/TD&gt;&lt;TD&gt;Week Ending Date&lt;/TD&gt;&lt;TD&gt;Gross Adds&lt;/TD&gt;&lt;TD&gt;% Applied (Return of "Overall Month")&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4530&lt;/TD&gt;&lt;TD&gt;10/6/2024 0:00&lt;/TD&gt;&lt;TD&gt;2973&lt;/TD&gt;&lt;TD&gt;-0.09&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3673&lt;/TD&gt;&lt;TD&gt;10/13/2024 0:00&lt;/TD&gt;&lt;TD&gt;3013&lt;/TD&gt;&lt;TD&gt;0.05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2917&lt;/TD&gt;&lt;TD&gt;10/20/2024 0:00&lt;/TD&gt;&lt;TD&gt;2931&lt;/TD&gt;&lt;TD&gt;-0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2948&lt;/TD&gt;&lt;TD&gt;10/27/2024 0:00&lt;/TD&gt;&lt;TD&gt;2722&lt;/TD&gt;&lt;TD&gt;-0.08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2911&lt;/TD&gt;&lt;TD&gt;11/3/2024 0:00&lt;/TD&gt;&lt;TD&gt;1753&lt;/TD&gt;&lt;TD&gt;0.01&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see how that equates to different %'s in each row?&amp;nbsp; That's what I'm trying to avoid.&amp;nbsp; I was trying to get the overall Month Change which is like -2% and multiply -2% * each row.&amp;nbsp; All of the formulas tried result in the exact same -they apply logic to the row.&amp;nbsp; Make sense?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 14:23:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4267070#M169156</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2024-11-01T14:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Month Calculation to Row Without Changing Month Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4303022#M170856</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195725" data-lia-user-login="sanalytics" class="lia-mention lia-mention-user"&gt;sanalytics&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490030" data-lia-user-login="Irwan" class="lia-mention lia-mention-user"&gt;Irwan&lt;/a&gt;&amp;nbsp; &amp;nbsp;I finally got this working.&amp;nbsp; To get the sum of the column so that it shows up in each row it's simply&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AllFilter1= Calculate([Gross Adds],AllSELECTED());
All PY=Calculate([PYSALESBYWEEK],AllSELECTED());&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can do a calculation by row to calculate the overall month change against the previous year(PY) such as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Forecast1 = [PYSalesByWeek]+(([All Filter1]-[All PY])/[All Filter1])*[PYSalesByWeek]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;PYSalesByWeek&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Week Ending Date&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Gross Adds&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;All Filter1&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;All PY&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Forecast1&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2911&lt;/TD&gt;&lt;TD&gt;11/3/2024 0:00&lt;/TD&gt;&lt;TD&gt;2027&lt;/TD&gt;&lt;TD&gt;10800&lt;/TD&gt;&lt;TD&gt;13155&lt;/TD&gt;&lt;TD&gt;2276&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4242&lt;/TD&gt;&lt;TD&gt;11/10/2024 0:00&lt;/TD&gt;&lt;TD&gt;3075&lt;/TD&gt;&lt;TD&gt;10800&lt;/TD&gt;&lt;TD&gt;13155&lt;/TD&gt;&lt;TD&gt;3317&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2942&lt;/TD&gt;&lt;TD&gt;11/17/2024 0:00&lt;/TD&gt;&lt;TD&gt;2577&lt;/TD&gt;&lt;TD&gt;10800&lt;/TD&gt;&lt;TD&gt;13155&lt;/TD&gt;&lt;TD&gt;2300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3060&lt;/TD&gt;&lt;TD&gt;11/24/2024 0:00&lt;/TD&gt;&lt;TD&gt;3121&lt;/TD&gt;&lt;TD&gt;10800&lt;/TD&gt;&lt;TD&gt;13155&lt;/TD&gt;&lt;TD&gt;2393&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I would appreciate kudos and an acceptance as solution please.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 01:43:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4303022#M170856</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2024-11-27T01:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Month Calculation to Row Without Changing Month Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4303061#M170858</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;Congratulations on solving this issue and thanks for sharing your solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please remember to accept your solution as answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will do great help to those who meet the similar question in this forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your contribution.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 02:13:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-Month-Calculation-to-Row-Without-Changing-Month/m-p/4303061#M170858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-27T02:13:18Z</dc:date>
    </item>
  </channel>
</rss>

