<?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: How to build a measure calculates previous year data but shown in the same row of current year? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146942#M187699</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="786585" data-lia-user-login="MiaSunny" class="lia-mention lia-mention-user"&gt;MiaSunny&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PBIX file would have been better. However can you please try this code to see whether this solves your problem?&lt;/P&gt;&lt;PRE&gt;py = 
// 1. Identify the latest date in the current visual node (e.g., end of 2024-2)
VAR CurrentAxisDate = MAX('Calendar'[Date])

// 2. Shift that boundary back mathematically by exactly 12 months
VAR PYCutoffDate = EDATE(CurrentAxisDate, -12)

// 3. Compute the continuous cumulative total up to the PY cutoff
VAR PYCumulative = 
    CALCULATE(
        [sales], // Replace with your base sales measure
        REMOVEFILTERS('Calendar'), // Clears the 2024 visual context so it doesn't restrict the dates
        'Calendar'[Date] &amp;lt;= PYCutoffDate // Re-evaluates for all time up to the PY cutoff
    )

VAR HasCYData = NOT ISBLANK([sales_accu__cy])

RETURN
    IF(HasCYData, PYCumulative)&lt;/PRE&gt;&lt;P&gt;if this solves your problem, please mark this as solved and give me a kudos.&lt;/P&gt;&lt;P&gt;if you have any issue,&amp;nbsp;@me so that I don't lose this thread.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2026 21:15:21 GMT</pubDate>
    <dc:creator>mizan2390</dc:creator>
    <dc:date>2026-04-10T21:15:21Z</dc:date>
    <item>
      <title>How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146867#M187694</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a visual to show a line chart with 2 lines for cy and py cumulative sales overlapped to compare the trends like below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i built the data in power BI like this-- the last column is my target but i made only sales_accu_py column:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a year-quarter slicer and when the slicer changed , the measures sales_accu_cy and sales_accu_py get the cumulative sales data in the past 2 qts and 2 qts one year before that, then my line chart shows 2 lines far away from each other&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to make a measure get the result like my last column, the py data could be in the same row as the cy data then we could make the line chart as mentioned on top?( Or a better plan than this to make the visual )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;yearQt&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;sales&lt;/TD&gt;&lt;TD&gt;sales_accu&lt;/TD&gt;&lt;TD&gt;sales_accu__cy&lt;/TD&gt;&lt;TD&gt;sales_accu_py&lt;/TD&gt;&lt;TD&gt;Expected result py&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023-1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;100&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023-2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;200&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023-3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;300&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023-4&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;400&lt;/TD&gt;&lt;TD&gt;700&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;150&lt;/TD&gt;&lt;TD&gt;550&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;250&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;350&lt;/TD&gt;&lt;TD&gt;600&lt;/TD&gt;&lt;TD&gt;600&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-4&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;450&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 21:13:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146867#M187694</guid>
      <dc:creator>MiaSunny</dc:creator>
      <dc:date>2026-04-10T21:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146885#M187695</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="786585" data-lia-user-login="MiaSunny" class="lia-mention lia-mention-user"&gt;MiaSunny&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;sure it's possible. Do you have a calendar table right? Then you can write the measure for PY like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales Accu PY  =
CALCULATE(
    Sum(sales accu),
    SAMEPERIODLASTYEAR('Date'[Date])
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Apr 2026 18:15:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146885#M187695</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2026-04-10T18:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146896#M187696</link>
      <description>&lt;P&gt;I think my sales accu isn't helpful here, since the cy and py data is according to the selected yearquarter, instead of grab the data directly from that column. thank you !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 18:35:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146896#M187696</guid>
      <dc:creator>MiaSunny</dc:creator>
      <dc:date>2026-04-10T18:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146924#M187697</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;this doesn't work or did i miss something? just use sameperiodlastyear will get the result just like my accu_py not as expected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 20:31:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146924#M187697</guid>
      <dc:creator>MiaSunny</dc:creator>
      <dc:date>2026-04-10T20:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146935#M187698</link>
      <description>&lt;P&gt;Thank you for reading and replying this.&lt;/P&gt;&lt;P&gt;I checked some posts by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="847282" data-lia-user-login="mizan2390" class="lia-mention lia-mention-user"&gt;mizan2390&lt;/a&gt;&amp;nbsp;and tried these functions still not solved.It's always using the py date row.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a different situlation from&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Year-Measure-for-Line-Chart/m-p/5136014" target="_blank"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Year-Measure-for-Line-Chart/m-p/5136014&lt;/A&gt;&amp;nbsp;since the data selected could be in a different year so i cannot use DATESYTD.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 20:59:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146935#M187698</guid>
      <dc:creator>MiaSunny</dc:creator>
      <dc:date>2026-04-10T20:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146942#M187699</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="786585" data-lia-user-login="MiaSunny" class="lia-mention lia-mention-user"&gt;MiaSunny&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PBIX file would have been better. However can you please try this code to see whether this solves your problem?&lt;/P&gt;&lt;PRE&gt;py = 
// 1. Identify the latest date in the current visual node (e.g., end of 2024-2)
VAR CurrentAxisDate = MAX('Calendar'[Date])

// 2. Shift that boundary back mathematically by exactly 12 months
VAR PYCutoffDate = EDATE(CurrentAxisDate, -12)

// 3. Compute the continuous cumulative total up to the PY cutoff
VAR PYCumulative = 
    CALCULATE(
        [sales], // Replace with your base sales measure
        REMOVEFILTERS('Calendar'), // Clears the 2024 visual context so it doesn't restrict the dates
        'Calendar'[Date] &amp;lt;= PYCutoffDate // Re-evaluates for all time up to the PY cutoff
    )

VAR HasCYData = NOT ISBLANK([sales_accu__cy])

RETURN
    IF(HasCYData, PYCumulative)&lt;/PRE&gt;&lt;P&gt;if this solves your problem, please mark this as solved and give me a kudos.&lt;/P&gt;&lt;P&gt;if you have any issue,&amp;nbsp;@me so that I don't lose this thread.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 21:15:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146942#M187699</guid>
      <dc:creator>mizan2390</dc:creator>
      <dc:date>2026-04-10T21:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146955#M187700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="847282" data-lia-user-login="mizan2390" class="lia-mention lia-mention-user"&gt;mizan2390&lt;/a&gt;&amp;nbsp;, thank you for the response. Here is my testing result:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I read the code and returned the parameters you created, and get your logic of the calculation, but the result is just the sales in that month. Due to the security rules in my company i cannot share the file here, but i could paste all the code below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only one table in Power query as datasource and i named it as QL_Summary&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Xc5BCsAwCAXRu7gORI029CyS+1+j+TRF7PYthokg6dKV1amRM9NqQZZ0HZpJ85Bw2v3ZS7ZJvMRA6iUGGl5jMPMSG4jVM5DWM9D4ncEMth4=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [QulifiedLending_ECIP_DatebyMonth = _t, tQL = _t]),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(Source,{{"QulifiedLending_ECIP_DatebyMonth", type date}, {"tQL", type number}}),&lt;BR /&gt;#"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"QulifiedLending_ECIP_DatebyMonth", "QLDate"}})&lt;BR /&gt;in&lt;BR /&gt;#"Renamed Columns"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Datetable for the sample by one line ( in my project i created one by Calendar(2020-1-1, today())&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DateTable =&lt;/SPAN&gt; &lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;QL_Summary&lt;/SPAN&gt;&lt;SPAN&gt;[QLDate]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The datetable isn't related to my QLsummary table, or my CY won't work will show one row only instead of the 4 qts.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;That's all I have and thank you again for your help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 23:12:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146955#M187700</guid>
      <dc:creator>MiaSunny</dc:creator>
      <dc:date>2026-04-10T23:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146958#M187701</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="786585" data-lia-user-login="MiaSunny" class="lia-mention lia-mention-user"&gt;MiaSunny&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;baising on your latetst info, can you try this one&lt;/P&gt;&lt;PRE&gt;CumulativeCY = 
// 1. Capture the exact date currently evaluated on the DateTable visual axis
VAR CurrentAxisDate = MAX ( 'DateTable'[Date] )

// 2. Define your rolling boundaries 
// (Retaining your -9 months logic, though EDATE is often safer for month math)
VAR CYStart = DATE ( YEAR ( CurrentAxisDate ), MONTH ( CurrentAxisDate ) - 9, 1 )
VAR CYEnd   = DATE ( YEAR ( CurrentAxisDate ), MONTH ( CurrentAxisDate ), 1 )

// 3. Use CALCULATE to override the context and sum the defined window
VAR sumQ =
    CALCULATE (
        SUM ( QL_Summary[tQL] ),
        REMOVEFILTERS ( QL_Summary ), // Ensures no accidental cross-filtering interrupts the accumulation
        QL_Summary[QLDate] &amp;gt;= CYStart,
        QL_Summary[QLDate] &amp;lt;= CYEnd
    )

RETURN
    sumQ&lt;/PRE&gt;&lt;PRE&gt;TestPY = 
// 1. Capture the DateTable axis date
VAR CurrentAxisDate = MAX ( 'DateTable'[Date] )

// 2. Shift the boundaries back by exactly 1 year (12 months)
VAR PYStart = EDATE ( DATE ( YEAR ( CurrentAxisDate ), MONTH ( CurrentAxisDate ) - 9, 1 ), -12 )
VAR PYEnd   = EDATE ( DATE ( YEAR ( CurrentAxisDate ), MONTH ( CurrentAxisDate ), 1 ), -12 )

// 3. Compute the PY accumulation
VAR sumPY =
    CALCULATE (
        SUM ( QL_Summary[tQL] ),
        REMOVEFILTERS ( QL_Summary ),
        QL_Summary[QLDate] &amp;gt;= PYStart,
        QL_Summary[QLDate] &amp;lt;= PYEnd
    )

RETURN
    sumPY&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;If your use of &lt;/SPAN&gt;MONTH(...) - 9&lt;SPAN class=""&gt; was a workaround attempt to force the cumulative total to reset on January 1st of the current year (a standard Year-To-Date), you can make the DAX much cleaner and safer across different years by directly anchoring &lt;/SPAN&gt;CYStart&lt;SPAN class=""&gt; to January 1st:&lt;/SPAN&gt; VAR CYStart = DATE ( YEAR ( CurrentAxisDate ), 1, 1 )&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;If it is intentionally meant to be a rolling 10-month window, the measures provided above is supposed to handle it perfectly.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;if this solves your problem, please mark this as solved and give me a kudos.&lt;/P&gt;&lt;P&gt;if you have any issue,&amp;nbsp;@me so that I don't lose this thread.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Apr 2026 22:14:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146958#M187701</guid>
      <dc:creator>mizan2390</dc:creator>
      <dc:date>2026-04-10T22:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a measure calculates previous year data but shown in the same row of current year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146969#M187702</link>
      <description>&lt;P&gt;I would like to have 4 quarters for CY and also for PY, so the startdate could be 9 months ago from selected month ( included as the last qt of cy ) then we will have 4 quarters for the trend.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did helped me a lot although not directly by copying and pasting, and give me a better understanding on date slicing through DAX. Appreciate for all the posts and suggestions!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 23:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-build-a-measure-calculates-previous-year-data-but-shown/m-p/5146969#M187702</guid>
      <dc:creator>MiaSunny</dc:creator>
      <dc:date>2026-04-10T23:10:09Z</dc:date>
    </item>
  </channel>
</rss>

