<?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: Quarter over Quarter variance measure/column for table with quarter end amounts by account. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3080228#M107311</link>
    <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;.&amp;nbsp;I tried your solution and did not get the result I was expecting.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here's what I did:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created a date table and marked it as a date table&lt;/LI&gt;&lt;LI&gt;Created a relationship between the [Date] column in my date table and the [Quarters_Column] column in my accounts table (Originally ref'd as table1[Date] above).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Used the DAX formula you referenced, utilizing the [Date] field from the date table.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Quarterly_Change = 
VAR PREVAMOUNT = CALCULATE(SUM(AccountBalances[Period Value in Group Currency]), PREVIOUSQUARTER(Date_Table[Date]))
VAR CURRAMOUNT = AccountBalances[Period Value in Group Currency]
RETURN CURRAMOUNT - PREVAMOUNT &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;The results are returning the current quarter amount rather than the variance from the previous quarter. The below screenshot shows an example. I'm wanting it to calculate ($2,329,916.31) - $4,429,234.68 and return $(6,759,150.99).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any idea on what else I could try?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional screenshots:&lt;/STRONG&gt;&lt;BR /&gt;Date table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationship between Amounts Table and Date Table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 20:22:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-14T20:22:46Z</dc:date>
    <item>
      <title>Quarter over Quarter variance measure/column for table with quarter end amounts by account.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3078877#M107181</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I have a table that lists quarter-end account balances by account and business group and I'd like to create a measure or column that shows the quarter-over-quarter balance change for each company/account combo (e.g., Group A, Account 10000 quarter-over-quarter change is $500 in Q2).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried various formulas using the calculate function, but these don't work if I don't apply aggregation (SUM and SUMX are what I've tried) to the AMOUNT column. The aggregations seem to mess up the results. I either get blank values or duplicate amount values. I think it's because the amounts don't need to be aggregated. They're already aggregated values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do a simple subtraction based on quarterly dates without having to aggregate my amount column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The formula(and similar variations) I've tried:&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR CurrentAmt = TABLE1[AMOUNT]
VAR PrevAmt = CALCULATE(SUM(TABLE1[AMOUNT]), PREVIOUSQUARTER(TABLE1[DATE].[DATE])
RETURN = CurrentAmt - PrevAmt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table example:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Group&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Q End Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Quarter&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;100000&lt;/TD&gt;&lt;TD&gt;$2000&lt;/TD&gt;&lt;TD&gt;3/31/22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;200000&lt;/TD&gt;&lt;TD&gt;$3000&lt;/TD&gt;&lt;TD&gt;3/31/22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;100000&lt;/TD&gt;&lt;TD&gt;$4000&lt;/TD&gt;&lt;TD&gt;3/31/22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;200000&lt;/TD&gt;&lt;TD&gt;$5000&lt;/TD&gt;&lt;TD&gt;3/31/22&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Feb 2023 06:26:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3078877#M107181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-14T06:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter over Quarter variance measure/column for table with quarter end amounts by account.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3079852#M107285</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Always use date table marked as date table joined with your table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR CurrentAmt = TABLE1[AMOUNT]&lt;BR /&gt;VAR PrevAmt = CALCULATE(SUM(TABLE1[AMOUNT]), PREVIOUSQUARTER(Date[DATE])&lt;BR /&gt;RETURN = CurrentAmt - PrevAmt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also do not use .Date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Time Intelligence, Part of learn Power BI &lt;A href="https://youtu.be/cN8AO3_vmlY?t=27510" target="_blank"&gt;https://youtu.be/cN8AO3_vmlY?t=27510&lt;/A&gt;&lt;BR /&gt;Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period, &lt;BR /&gt;Custom Period till date: &lt;A href="https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s&lt;/A&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:44:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3079852#M107285</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-02-14T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter over Quarter variance measure/column for table with quarter end amounts by account.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3080228#M107311</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;.&amp;nbsp;I tried your solution and did not get the result I was expecting.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here's what I did:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created a date table and marked it as a date table&lt;/LI&gt;&lt;LI&gt;Created a relationship between the [Date] column in my date table and the [Quarters_Column] column in my accounts table (Originally ref'd as table1[Date] above).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Used the DAX formula you referenced, utilizing the [Date] field from the date table.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Quarterly_Change = 
VAR PREVAMOUNT = CALCULATE(SUM(AccountBalances[Period Value in Group Currency]), PREVIOUSQUARTER(Date_Table[Date]))
VAR CURRAMOUNT = AccountBalances[Period Value in Group Currency]
RETURN CURRAMOUNT - PREVAMOUNT &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;The results are returning the current quarter amount rather than the variance from the previous quarter. The below screenshot shows an example. I'm wanting it to calculate ($2,329,916.31) - $4,429,234.68 and return $(6,759,150.99).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any idea on what else I could try?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional screenshots:&lt;/STRONG&gt;&lt;BR /&gt;Date table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationship between Amounts Table and Date Table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 20:22:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3080228#M107311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-14T20:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter over Quarter variance measure/column for table with quarter end amounts by account.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3085899#M107862</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; - Did you manage to resolve this? If so, could you please share the solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 04:07:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3085899#M107862</guid>
      <dc:creator>khtan518</dc:creator>
      <dc:date>2023-02-18T04:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter over Quarter variance measure/column for table with quarter end amounts by account.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3088216#M108069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="516946" data-lia-user-login="khtan518" class="lia-mention lia-mention-user"&gt;khtan518&lt;/a&gt;&amp;nbsp;, I have not found a solution yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 14:48:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-over-Quarter-variance-measure-column-for-table-with/m-p/3088216#M108069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-20T14:48:22Z</dc:date>
    </item>
  </channel>
</rss>

