<?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: Running Total per week/month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4127375#M163909</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="799567" data-lia-user-login="Nero_Carbone" class="lia-mention lia-mention-user"&gt;Nero_Carbone&lt;/a&gt;&amp;nbsp;Perhaps one of these can help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Running-Total/m-p/2755666#M885" target="_blank"&gt;(1) Better Running Total - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Year-to-Date-Total/m-p/2875532#M908" target="_blank"&gt;Better Year to Date Total - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 17:37:12 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2024-08-30T17:37:12Z</dc:date>
    <item>
      <title>Running Total per week/month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4127339#M163906</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have a measure in power pivot for the running total that behaves like the one in the normal pivot tables.&lt;/P&gt;&lt;P&gt;For instance, in the pivot table below the value are shown as running totals based on the week number (y axis).&lt;/P&gt;&lt;P&gt;The running total is based on the week number, and for example after w6 in January it`s still reported the maximum value for the month.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it's the most i managed to accomplish via power pivot:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here the code for the measure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;ActualsRunningTotal:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;TOTALYTD&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Actuals[Volume]), Actuals[Date], &lt;/SPAN&gt;&lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Actuals))&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the structure of the model, highlighted the fields i use in the pivot.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I didn`t quite manage to find online how to handle this case, any ideas? Should i adjust the relationship between tables or use different functions?&lt;/P&gt;&lt;P&gt;I`m doing it via power pivot because then i would need to combine the measure with other two, for which I only need the normal totals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance, any help is very much appreciated&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 16:57:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4127339#M163906</guid>
      <dc:creator>Nero_Carbone</dc:creator>
      <dc:date>2024-08-30T16:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total per week/month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4127375#M163909</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="799567" data-lia-user-login="Nero_Carbone" class="lia-mention lia-mention-user"&gt;Nero_Carbone&lt;/a&gt;&amp;nbsp;Perhaps one of these can help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Running-Total/m-p/2755666#M885" target="_blank"&gt;(1) Better Running Total - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Year-to-Date-Total/m-p/2875532#M908" target="_blank"&gt;Better Year to Date Total - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 17:37:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4127375#M163909</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-08-30T17:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total per week/month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4128048#M163942</link>
      <description>&lt;P&gt;Thanks for leading me on the right direction&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end i managed to accomplish what i needed with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;SPAN class=""&gt;ActualsRunningTotal:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Actuals),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;'Actuals'[Date (Month Index)]=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Months[MonthNum])&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Actuals[WeekID]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(WeekID[WeekID])&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;YEAR&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Actuals[Date])=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(WeekID[Year])),Actuals[CU])&lt;/SPAN&gt;&lt;!--   EndFragment    --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I didn`t need to adapt the structure of the data model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;EDIT:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;One more question please: despite using ALLSELECTED, it seems like the values don`t change when additional filters are applied to the context (e.g. adding the suppliers on the rows).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Before filters:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;After detailing supplier:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i fix it please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 18:57:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4128048#M163942</guid>
      <dc:creator>Nero_Carbone</dc:creator>
      <dc:date>2024-08-31T18:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total per week/month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4128260#M163952</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="799567" data-lia-user-login="Nero_Carbone" class="lia-mention lia-mention-user"&gt;Nero_Carbone&lt;/a&gt;&amp;nbsp;Difficult to say. I would make sure that the proper relationships exist first. Often, when you see repeated values in a table it is the result of a missing or incorrect relationship.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 11:12:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-per-week-month/m-p/4128260#M163952</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-09-01T11:12:55Z</dc:date>
    </item>
  </channel>
</rss>

