<?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: Table % Change from Previous Row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820439#M184265</link>
    <description>&lt;P&gt;Here&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;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2025 17:34:30 GMT</pubDate>
    <dc:creator>FBergamaschi</dc:creator>
    <dc:date>2025-09-08T17:34:30Z</dc:date>
    <item>
      <title>Table % Change from Previous Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820431#M184263</link>
      <description>&lt;P&gt;I have a simple table that has 2 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;SUM Units&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add a third column that gets the % Change of Sum Units for each row compared to the previous year. I'm likely overthinking the DAX. Can someone help provide the correct DAX to get this? The years could be in order, they could just be 2020 and 2024.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 17:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820431#M184263</guid>
      <dc:creator>TCavins</dc:creator>
      <dc:date>2025-09-08T17:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table % Change from Previous Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820439#M184265</link>
      <description>&lt;P&gt;Here&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;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 17:34:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820439#M184265</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-09-08T17:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table % Change from Previous Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820447#M184267</link>
      <description>&lt;P&gt;When I do the measure, it's not letting me select 'table'[year]. I'm trying measures as it needs to calculate on the fly based on Year or any other column the user may filter on to get units for that year/filter.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 17:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820447#M184267</guid>
      <dc:creator>TCavins</dc:creator>
      <dc:date>2025-09-08T17:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table % Change from Previous Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820451#M184268</link>
      <description>&lt;P class="lia-align-justify"&gt;You asked for a column so I created that. If you want a measure&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Meas=&lt;/P&gt;&lt;P&gt;VAR CURRENTYEAR = SELECTEDVALUE(TABLE[YEAR])&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;CALCULATE ( SUM (TABLE[QTY] ), TABLE[YEAR] = CURRENTYEAR-1,&lt;/P&gt;&lt;P&gt;REMOVEFILTERS(TABLE[YEAR])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt;in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank" rel="noopener"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank" rel="noopener"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 17:54:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820451#M184268</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-09-08T17:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table % Change from Previous Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820454#M184269</link>
      <description>&lt;P&gt;Not working for me. It's blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The years could be 2020,2021,2022, 2023,2024,2025.&amp;nbsp; &amp;nbsp;They could be 2020, 2023, 2025 or any other combination that the user has chosen so I don't think I can just say currentYear -1.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 17:57:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820454#M184269</guid>
      <dc:creator>TCavins</dc:creator>
      <dc:date>2025-09-08T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table % Change from Previous Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820474#M184270</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1287762" data-lia-user-login="FBergamaschi" class="lia-mention lia-mention-user"&gt;FBergamaschi&lt;/a&gt;&amp;nbsp;So my dataset has Year and Units.&amp;nbsp; I'm putting them into a Power BI table visual&amp;nbsp; summing the units to get total by year.&amp;nbsp; &amp;nbsp;Within the visual, I want to get the % change in total units from the previous row. Filters on the page could make it so the years are not consecutive (2020, 2023, and 2025). I'm using a measure as I want the value to be variable based on what's shown in the visual.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 18:39:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820474#M184270</guid>
      <dc:creator>TCavins</dc:creator>
      <dc:date>2025-09-08T18:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table % Change from Previous Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820527#M184274</link>
      <description>&lt;P&gt;Here's the solution I developed combining various sources I found. It may not be the most condensed but it works:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Units % Changed = 
VAR CurrentRowDate = MAX(MYTABLE[Year])
var currentUnits = CALCULATE(
                                SUM(MYTABLE[Units]),
                                FILTER(
                                    ALLSELECTED(MYTABLE),
                                    MYTABLE[Year] = CurrentRowDate))

VAR previousUnits =
    CALCULATE(
        SUM(MYTABLE[Units]),
        FILTER(
            ALLSELECTED(MYTABLE),
            MYTABLE[Year] 
                = CALCULATE (
                    MAX(MYTABLE[Year]),
                    FILTER(ALLSELECTED(MYTABLE), MYTABLE[Year] &amp;lt; CurrentRowDate)
                )
        )
    )
var percentChanged = (currentUnits - previousUnits) / previousUnits 
RETURN IF(ISBLANK(previousUnits), BLANK(),percentChanged)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Sep 2025 19:57:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-Change-from-Previous-Row/m-p/4820527#M184274</guid>
      <dc:creator>TCavins</dc:creator>
      <dc:date>2025-09-08T19:57:45Z</dc:date>
    </item>
  </channel>
</rss>

