<?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: YoY% but with a rolling date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471816#M132575</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284628" data-lia-user-login="Erokor" class="lia-mention lia-mention-user"&gt;Erokor&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I appreciate your time,&lt;BR /&gt;So I have 5 years of data. I am certain that I have maybe 3 or 4 days where there are zero incidents, but the majority of days for the year have at least 1 incident.&lt;BR /&gt;So I am looking for something that continues to update as "today" instead of having the measure above and having a day filter on my page.&amp;nbsp;&lt;BR /&gt;I want it to read today - 1 year for a total and from there I might be able to get a YoY% difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 17:13:50 GMT</pubDate>
    <dc:creator>GJeanes1</dc:creator>
    <dc:date>2023-10-11T17:13:50Z</dc:date>
    <item>
      <title>YoY% but with a rolling date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471514#M132557</link>
      <description>&lt;P&gt;So I have a quick measure that looks at YoY% but I need to have it as a rolling date (automated so it sees that the date is different so if reflects the date) so look at today's date but last year's (2022), the year before (2021), and the year before (2020).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count of Reporting Number YoY% = 
IF(
	ISFILTERED('Initial Data'[Date_and_Time]),
	ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
	VAR __PREV_YEAR =
		CALCULATE(
			COUNTA('Initial Data'[Reporting Number]),
			DATEADD(
				'Initial Data'[Date_and_Time].[Date],
				-1,
				YEAR
			)
		)
	RETURN
		DIVIDE(
			COUNTA('Initial Data'[Reporting Number])
				- __PREV_YEAR,
			__PREV_YEAR
		)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:08:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471514#M132557</guid>
      <dc:creator>GJeanes1</dc:creator>
      <dc:date>2023-10-11T15:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: YoY% but with a rolling date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471643#M132569</link>
      <description>&lt;P&gt;I highly suggest utilizing a Date table rather than the built in Time-Intelligence on a date in your fact table. UNLESS you are completely certain you only have one entry for each date, and that you have an entry for each date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if I have a date table, related to my date column. I can simply iterate over that date table, and filter the range of dates I need using logic.&lt;/P&gt;&lt;P&gt;An example of this is below:&lt;/P&gt;&lt;P&gt;VAR CurrDate = 'Date'[Date]&lt;/P&gt;&lt;P&gt;VAR DatesInRange = FILTER(ALL('Date'), 'Date'[Date] = CurrDate - 31 &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= CurrDate)&lt;BR /&gt;VAR MovingTotal = CALCULATE([MeasureforAverage], DatesInRange)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;MovingTotal&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 16:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471643#M132569</guid>
      <dc:creator>Erokor</dc:creator>
      <dc:date>2023-10-11T16:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: YoY% but with a rolling date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471816#M132575</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284628" data-lia-user-login="Erokor" class="lia-mention lia-mention-user"&gt;Erokor&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I appreciate your time,&lt;BR /&gt;So I have 5 years of data. I am certain that I have maybe 3 or 4 days where there are zero incidents, but the majority of days for the year have at least 1 incident.&lt;BR /&gt;So I am looking for something that continues to update as "today" instead of having the measure above and having a day filter on my page.&amp;nbsp;&lt;BR /&gt;I want it to read today - 1 year for a total and from there I might be able to get a YoY% difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:13:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471816#M132575</guid>
      <dc:creator>GJeanes1</dc:creator>
      <dc:date>2023-10-11T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: YoY% but with a rolling date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471827#M132576</link>
      <description>&lt;P&gt;Exactly, which you will require a Date table for - this can then be linked to your date column. (You can use Bravo by SQLBI to add one easily).&lt;BR /&gt;&lt;BR /&gt;When you have this you can use Time intelligence CALCULATE() modifier functions such as SAMEPERIODLASTYEAR(). You can also use Relative columns that good date tables have in them. Or CALCULATE([Some Measure],FILTER(ALL('Date'), 'Date'[Year] = YEAR(TODAY())-1)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:17:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471827#M132576</guid>
      <dc:creator>Erokor</dc:creator>
      <dc:date>2023-10-11T17:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: YoY% but with a rolling date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471856#M132579</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284628" data-lia-user-login="Erokor" class="lia-mention lia-mention-user"&gt;Erokor&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your insight, unfortunately, I am going to have to wait on Bravo software, but I will update you once I get it and figure out its mechanics.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:38:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3471856#M132579</guid>
      <dc:creator>GJeanes1</dc:creator>
      <dc:date>2023-10-11T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: YoY% but with a rolling date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3477414#M132878</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284628" data-lia-user-login="Erokor" class="lia-mention lia-mention-user"&gt;Erokor&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So after having some time with Bravo, it has not&amp;nbsp; changed much of what i am trying to accomplish,&lt;BR /&gt;Your measure of&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE([Some Measure],FILTER(ALL('Date'), 'Date'[Year] = YEAR(TODAY())-1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;has replaced the built in time intelligence of yoy% but i am again trying to break it down even further from calculating the total of one year, and comparing it to another year.&lt;BR /&gt;I am trying to break down from the date of today - the date of the last 5 year's todays and get the yoy% percentage.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2023 16:30:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-but-with-a-rolling-date/m-p/3477414#M132878</guid>
      <dc:creator>GJeanes1</dc:creator>
      <dc:date>2023-10-15T16:30:51Z</dc:date>
    </item>
  </channel>
</rss>

