<?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 % change between previous and current quarters in power bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/change-between-previous-and-current-quarters-in-power-bi/m-p/2653088#M78287</link>
    <description>&lt;P&gt;can you please assist on how do i calculate the % change between previous and current quarters in power bi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 12:13:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-21T12:13:47Z</dc:date>
    <item>
      <title>% change between previous and current quarters in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/change-between-previous-and-current-quarters-in-power-bi/m-p/2653088#M78287</link>
      <description>&lt;P&gt;can you please assist on how do i calculate the % change between previous and current quarters in power bi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 12:13:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/change-between-previous-and-current-quarters-in-power-bi/m-p/2653088#M78287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-21T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: % change between previous and current quarters in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/change-between-previous-and-current-quarters-in-power-bi/m-p/2653225#M78292</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;read this full article:&lt;BR /&gt;&lt;A href="https://www.daxpatterns.com/standard-time-related-calculations/" target="_blank"&gt;https://www.daxpatterns.com/standard-time-related-calculations/&lt;/A&gt;&lt;BR /&gt;You also have there a section about quarter over quarter.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/company/spartabi" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.facebook.com/SpartaBI" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/m-p/2449543" target="_blank" rel="noopener"&gt;&lt;FONT size="4" color="#0000EE"&gt;Showcase Report – Contoso By SpartaBI&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 13:04:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/change-between-previous-and-current-quarters-in-power-bi/m-p/2653225#M78292</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-07-21T13:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: % change between previous and current quarters in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/change-between-previous-and-current-quarters-in-power-bi/m-p/2663482#M79056</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can use year and quarter functions to extract the year and quarter numbers from the date field value, then you can use them in expression to get corresponding current and previous quarter values to calculate the diff.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formual =
VAR currDate =
    MAX ( Table[Date] )
VAR prevDate =
    DATE ( YEAR ( currDate ), MONTH ( currDate ) - 3, DAY ( currDate ) )
VAR currQuarter =
    CALCULATE (
        SUM ( Table[Amount] ),
        FILTER (
            ALLSELECTED ( Table ),
            YEAR ( Table[Date] ) = YEAR ( currDate )
                &amp;amp;&amp;amp; QUARTER ( Table[Date] ) = QUARTER ( currDate )
        ),
        VALUES ( Table[Category] )
    )
VAR prevQuarter =
    CALCULATE (
        SUM ( Table[Amount] ),
        FILTER (
            ALLSELECTED ( Table ),
            YEAR ( Table[Date] ) = YEAR ( prevDate )
                &amp;amp;&amp;amp; QUARTER ( Table[Date] ) = QUARTER ( prevDate )
        ),
        VALUES ( Table[Category] )
    )
RETURN
    DIVIDE ( currQuarter - prevQuarter, prevQuarter )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 01:25:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/change-between-previous-and-current-quarters-in-power-bi/m-p/2663482#M79056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-27T01:25:19Z</dc:date>
    </item>
  </channel>
</rss>

