<?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: DAX difference between quarter excluding Q1 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2583421#M74209</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. I'm hoping for a DAX measure that I can later use on other meassures. Should have clarified that in the original post. Edited.&lt;/P&gt;&lt;P&gt;I don't believe a column is the best option for me in this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also updated the file with a more complete data set and including the basic data model that I'm working on.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 14:31:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-16T14:31:23Z</dc:date>
    <item>
      <title>DAX difference between quarter excluding Q1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2581650#M74095</link>
      <description>&lt;P&gt;Hi forum!&lt;/P&gt;&lt;P&gt;Note: I'm working in Excel 365.&lt;/P&gt;&lt;P&gt;I have a time series sliced by quarter but each quarter is cumulative. So Q1 is sales data for Q1, but Q2 is sales data for Q1+Q2, in Q3 it's sales data for Q1+Q2+Q3, and for Q4 it's sales data for Q1+Q2+Q3+Q4. This data is given to me like this and I cannot ask for it to be otherwise.&lt;/P&gt;&lt;P&gt;Thing is, I need the value for each quarter, not cumulative.&lt;/P&gt;&lt;P&gt;I've been racking my brain around in DAX for Power Pivot and I've managed to substract the quarter to get each value; thing is it does the same for Q1. It's substracting the value of Q4, cumulative, for Q1 so the output for Q1 is rubbish.&lt;/P&gt;&lt;P&gt;I need to find a way of substracting the values for each quarter except when it's Q1.&lt;/P&gt;&lt;P&gt;Is there anyway to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below a simple example file of what I need.&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/x/s!AqEBYAVXS3ejg6VA8J0p_yPhbcDrHw?e=YzWAcj" target="_blank"&gt;https://1drv.ms/x/s!AqEBYAVXS3ejg6VA8J0p_yPhbcDrHw?e=YzWAcj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;I'm hoping for a DAX measure that will return the Expected out in the sample file. I intend to use this measure in other measure later on.&lt;/P&gt;&lt;P&gt;I've updated the file linked above with a more complete version of the data model I'm using for a better reference.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 16:01:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2581650#M74095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-23T16:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX difference between quarter excluding Q1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2581749#M74100</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your data model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;The below is for creating a new column.&lt;/P&gt;
&lt;P&gt;I hope the below can provide some ideas on creating an accurate solution for your data model.&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;LI-CODE lang="markup"&gt;Expected outcome CC =
VAR _quartercondition =
    QUARTER ( 'Data'[Quarter end date] )
VAR _yearcondition =
    YEAR ( 'Data'[Quarter end date] )
VAR _untilpreviousquartersameyear =
    SUMX (
        FILTER (
            data,
            QUARTER ( 'Data'[Quarter end date] ) = _quartercondition - 1
                &amp;amp;&amp;amp; YEAR ( 'Data'[Quarter end date] ) = _yearcondition
        ),
        Data[Raw data]
    )
RETURN
    IF (
        _quartercondition = 1,
        Data[Raw data],
        Data[Raw data] - _untilpreviousquartersameyear
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Jun 2022 03:02:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2581749#M74100</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-06-16T03:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX difference between quarter excluding Q1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2583421#M74209</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. I'm hoping for a DAX measure that I can later use on other meassures. Should have clarified that in the original post. Edited.&lt;/P&gt;&lt;P&gt;I don't believe a column is the best option for me in this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also updated the file with a more complete data set and including the basic data model that I'm working on.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:31:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2583421#M74209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-16T14:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX difference between quarter excluding Q1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2591596#M74669</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808080"&gt;//This item may not exist or is no longer available.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Would you mind sharing the file again? Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 08:26:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2591596#M74669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-21T08:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX difference between quarter excluding Q1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2598328#M75030</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It had an expiration date. Reposted with expiration June 30.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 16:01:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-difference-between-quarter-excluding-Q1/m-p/2598328#M75030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-23T16:01:44Z</dc:date>
    </item>
  </channel>
</rss>

