<?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 Aggregated Running total for YoY/Change in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2447441#M65742</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Install base (customer count) measure which distinctcounts the number of customer IDs as follows:&lt;/P&gt;&lt;P&gt;&lt;!--    StartFragment     --&gt;&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 class=""&gt;I also have a similiar measure for the same period last year:&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;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;!--    EndFragment     --&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I use the two together to create a measure which reflects &lt;U&gt;the change in customer count&lt;/U&gt;:&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;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'm trying to create the same measure but Aggregated but I'm struggling with this and getting contiguous date selections dax-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Or when i try it this way i get too high numbers:&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 class=""&gt;So to try to recreate what I have on the right end below, summing the months as a running/aggregate total.&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;Thank you everyone,&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;!--    StartFragment     --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;!--    EndFragment     --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!--    EndFragment     --&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Apr 2022 09:51:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-10T09:51:54Z</dc:date>
    <item>
      <title>Aggregated Running total for YoY/Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2447441#M65742</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Install base (customer count) measure which distinctcounts the number of customer IDs as follows:&lt;/P&gt;&lt;P&gt;&lt;!--    StartFragment     --&gt;&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 class=""&gt;I also have a similiar measure for the same period last year:&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;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;!--    EndFragment     --&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I use the two together to create a measure which reflects &lt;U&gt;the change in customer count&lt;/U&gt;:&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;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'm trying to create the same measure but Aggregated but I'm struggling with this and getting contiguous date selections dax-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Or when i try it this way i get too high numbers:&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 class=""&gt;So to try to recreate what I have on the right end below, summing the months as a running/aggregate total.&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;Thank you everyone,&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;!--    StartFragment     --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;!--    EndFragment     --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!--    EndFragment     --&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 09:51:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2447441#M65742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-10T09:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Running total for YoY/Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2447959#M65778</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I think you may be gettting that message as you may not have a date table, with continuous dates starting before your data starts and ending at end of ear after. When you mark it as a date table and connect it on the one side to your many-side tables, then the built-in time intel functions work great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can paste some date table DAX code that you can use as a Date Table if you want to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dates =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Specify a start date and end date&lt;/P&gt;&lt;P&gt;VAR StartDate = Date(2010,1,1)&lt;/P&gt;&lt;P&gt;VAR EndDate = Today()&lt;/P&gt;&lt;P&gt;VAR FiscalMonthEnd = 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Generate a base table of dates&lt;/P&gt;&lt;P&gt;VAR BaseTable = Calendar(StartDate, EndDate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the Year for each individual date&lt;/P&gt;&lt;P&gt;VAR Years = ADDCOLUMNS(BaseTable,"Year",YEAR([Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the calendar month and other month related data for each date&lt;/P&gt;&lt;P&gt;VAR Months = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Years,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Month",MONTH([Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year and Month Number",FORMAT([Date],"YYYY-MM"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year and Month Name",FORMAT([Date],"YYYY-MMM"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Fiscal Year", IF( FiscalMonthEnd = 12, YEAR([Date]), IF( MONTH([DATE]) &amp;lt;= FiscalMonthEnd, YEAR([DATE])-1, YEAR([Date]))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Fiscal Month", IF( FiscalMonthEnd = 12, MONTH([Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF( MONTH([Date]) &amp;lt;= FiscalMonthEnd, FiscalMonthEnd + MONTH([Date]), MONTH([Date]) - FiscalMonthEnd))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the Quarter and other quarter related data for each date&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Quarters = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Months,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Quarter",ROUNDUP(MONTH([Date])/3,0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year and Quarter",[Year] &amp;amp; "-Q" &amp;amp; ROUNDUP(MONTH([Date])/3,0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the Day and other day related data for each date&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Days = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarters,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Day",DAY([Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Day Name",FORMAT([Date],"DDDD"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Day Of Week",WEEKDAY([Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Day Of Year", DATEDIFF (DATE(YEAR([Date]),1,1), [Date], DAY) + 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the Week (assuming each week starts on a Sunday) and other week related data for each date&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Weeks = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Days,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Week Of Month (Sunday)",INT((DAY([Date])-1)/7)+1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Week of Year (Sunday)",WEEKNUM([Date],1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year and Week (Sunday)",[Year] &amp;amp; "-W" &amp;amp; WEEKNUM([Date],1))&lt;/P&gt;&lt;P&gt;-- Add an 'Is Working Day' column which will be true for all days but Saturday and Sunday.&lt;/P&gt;&lt;P&gt;var WorkingDays = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weeks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Is Working Day", NOT WEEKDAY( [Date] ) IN {1,7})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN WorkingDays&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 00:08:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2447959#M65778</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-11T00:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Running total for YoY/Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2449245#M65861</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;, i'll try changing to my calendar table (i used the detail table date instead) and will update.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 10:23:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2449245#M65861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-11T10:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Running total for YoY/Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2449490#M65870</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;Great. I hope that works for you and if it does can you mark as solution? Thanks...&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 11:42:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2449490#M65870</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-11T11:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Running total for YoY/Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2454486#M66182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;I tried switiching as follows to my calendar table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I"m still not getting what I need to get (red arrow to yellow)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm getting the blue..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 09:35:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2454486#M66182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-13T09:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Running total for YoY/Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2454984#M66213</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;When you do your "Same Period LY measure, can you do it like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SPLY Install Base LABRA = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Install Base LABRA]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SAMEPERIODLASTYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then subtract your initial measure from this. I'll call it VAR Install Base LABRA&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To get cumlative total for the VAR Install Base LABRA&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;= CALCULATE([VAR Install Base LABRA], FILTER(ALLSELECTED(Dates),&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Dates[Date] &amp;lt;= MAX(Dates[Date])))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Normally this should work. Can you give it a try? Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:55:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregated-Running-total-for-YoY-Change/m-p/2454984#M66213</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-13T12:55:10Z</dc:date>
    </item>
  </channel>
</rss>

