<?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: growth percentage change quarter over quarter (part 2) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3343275#M125497</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="589022" data-lia-user-login="nero692" class="lia-mention lia-mention-user"&gt;nero692&lt;/a&gt;&amp;nbsp;You need to use calculate. SUM() function doesn't support filters&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 12:01:11 GMT</pubDate>
    <dc:creator>Mkarwa-123</dc:creator>
    <dc:date>2023-07-21T12:01:11Z</dc:date>
    <item>
      <title>growth percentage change quarter over quarter (part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3340815#M125387</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a follow-up from another topic solved &lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter/m-p/3331045#M124827" target="_self"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Initially, everything worked just fine when I realized my mistake (when you are tired, mistakes can pile up).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My calculation in Excel was not the right one. To get % of growth quarter over quarter, I should have done this:&lt;/P&gt;&lt;P&gt;(Q3 - Q2) / Q2. Initial formula was ok for just one line but not for the rest of the lines. Base quarter should always have been 2022 Q2.&lt;/P&gt;&lt;P&gt;In this case for Q4, it would have been like this (Q4 - Q2) / Q2.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So in the case of value for "bank" field, calculation (with values from "valueadd" field) would be&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;for 2022 Q3: (bank value Q3 - bank value Q2) / bank value Q2&lt;/P&gt;&lt;P&gt;for 2022 Q4: (bank value Q4 - bank value Q2) / bank value Q2&lt;/P&gt;&lt;P&gt;for 2023 Q1: (bank value Q1 - bank value Q2) / bank value Q2&lt;/P&gt;&lt;P&gt;for 2023 Q2: (bank value Q2 - bank value Q2) / bank value Q2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And same goes for the "rest of market" field&lt;/P&gt;&lt;P&gt;for 2022 Q3: (rest of market value Q3 - rest of market value Q2) / rest of market value Q2&lt;/P&gt;&lt;P&gt;for 2022 Q4: (rest of market value Q4 -rest of market value Q2) / rest of market value Q2&lt;/P&gt;&lt;P&gt;for 2023 Q1: (rest of market value Q1 - rest of market value Q2) / rest of market value Q2&lt;/P&gt;&lt;P&gt;for 2023 Q2: (rest of market value Q2 - rest of market value Q2) / rest of market value Q2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Values (already calculated in Excel) are i the % growth column for reference.&lt;/P&gt;&lt;P&gt;Initially the code for PowerBi worked but now I don't know where to make changes so it can refer to base value of 2022 Q2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Quarterly growth =
VAR CurrentQuarter =
    SUM ( 'tbl value'[valueadd] )
VAR PrevQuarter =
    CALCULATE (
        SUM ( 'tbl value'[valueadd] ),
        PREVIOUSQUARTER ( 'Calendar'[Date] )
    )
VAR Result =
    DIVIDE ( CurrentQuarter - PrevQuarter, PrevQuarter )
RETURN
    Result&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought it would be at this line PREVIOUSQUARTER ('Calendar'[Date]) IN {"2022 Q2"}....but it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;nero692&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 12:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3340815#M125387</guid>
      <dc:creator>nero692</dc:creator>
      <dc:date>2023-07-20T12:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: growth percentage change quarter over quarter (part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3341610#M125423</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="589022" data-lia-user-login="nero692" class="lia-mention lia-mention-user"&gt;nero692&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You dont need previousquarter() function , you directly can calculate using calulate function&lt;BR /&gt;Calculate (SUM(sales[sales]), qaurter ='Q2' &amp;amp; year= currentyear)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 18:16:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3341610#M125423</guid>
      <dc:creator>Mkarwa-123</dc:creator>
      <dc:date>2023-07-20T18:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: growth percentage change quarter over quarter (part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3342221#M125464</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="591566" data-lia-user-login="Mkarwa-123" class="lia-mention lia-mention-user"&gt;Mkarwa-123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After changing the values to match table values as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM('tbl value'[valueadd], tbl value[quarter] = 'Q2' &amp;amp; tbl value[year] = 2022)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it did not work. At first it said that it cannot find Q2, so I had to replace with "Q2" instead of 'Q2' but still can't make it work. Error message says "DAX comparison do not support comparing values of type True/False with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values."&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 02:25:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3342221#M125464</guid>
      <dc:creator>nero692</dc:creator>
      <dc:date>2023-07-21T02:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: growth percentage change quarter over quarter (part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3343275#M125497</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="589022" data-lia-user-login="nero692" class="lia-mention lia-mention-user"&gt;nero692&lt;/a&gt;&amp;nbsp;You need to use calculate. SUM() function doesn't support filters&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 12:01:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3343275#M125497</guid>
      <dc:creator>Mkarwa-123</dc:creator>
      <dc:date>2023-07-21T12:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: growth percentage change quarter over quarter (part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3345496#M125605</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="591566" data-lia-user-login="Mkarwa-123" class="lia-mention lia-mention-user"&gt;Mkarwa-123&lt;/a&gt;I used calculate along the sum function and that triggered the error message as explained above. I hsve no idea how else to make it work.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 00:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/growth-percentage-change-quarter-over-quarter-part-2/m-p/3345496#M125605</guid>
      <dc:creator>nero692</dc:creator>
      <dc:date>2023-07-24T00:18:01Z</dc:date>
    </item>
  </channel>
</rss>

