Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

QOQ difference

Hi there!

I need help calculating QOQ (quarter over quarter) difference with multiple variables as part of the data. Here is an example of data:

 

I greatly apprecaite any help you can give!

 

FABRICYEARQTRQTR_DATEAVG_QTR_PRICE     
cotton2020Q11/1/2083.56     
cotton2019Q410/1/1984.00     
cotton2019Q37/1/1986.89     
cotton2019Q24/1/1988.56     
cotton2019Q11/1/1989.15     

nylon

2020Q11/1/20

55.64

     
nylon2019Q410/1/1956.52     
nylon2019Q37/1/1957.58     
nylon2019Q24/1/1958.64     

nylon

2019Q11/1/1959.57     
linen2020Q11/1/2067.89     
linen2019Q410/1/1968.56     
linen2019Q37/1/1966.89     
linen2019Q24/1/1966.25     
linen2019Q11/1/1966.12     

 

 

8 REPLIES 8
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

@Anonymous , please find attached solution after signature

 

Appreciate your Kudos.

 

amitchandak
Super User
Super User

Make sure you have date calendar and try like this

QTD Sales = CALCULATE(Average(Sales[Price]),DATESQTD(('Date'[Date])))

Last QTD Sales = CALCULATE(Average(Sales[Price]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))
Last to last QTD Sales = CALCULATE(Average(Sales[Price]),DATESQTD(dateadd('Date'[Date],-2,QUARTER)))
Next QTD Sales = CALCULATE(Average(Sales[Price]),DATESQTD(dateadd('Date'[Date],1,QUARTER)))

Last year same QTD Sales = CALCULATE(Average(Sales[Price]),DATESQTD(dateadd('Date'[Date],-1,Year)))

trailing QTR = CALCULATE(Average(Sales[Price]),dateadd('Date'[Date],-1,QUARTER))
trailing  4 QTR = CALCULATE(Average(Sales[Price]),dateadd('Date'[Date],-4,QUARTER))

 

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 :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Does the above reply helps. if you need more help make me @

Appreciate your Kudos.

 

Ashish_Mathur
Super User
Super User

Hi,

Please show clearly the end result that you are expecting.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

something like this (QoQ on bottom row)

ignore these values i know it is different to the data i provided

 

Q4 2017Q1 2018Q2 2018Q3 2018Q4 2018Q1 2019Q2 2019Q3 2019Q4 2019Q1 2020
55.4824961.5546767.5507870.363859.4866754.8266759.7833356.4941757.552554.56167
 10.9%9.7%4.2%-15.5%-7.8%9.0%-5.5%1.9%-5.2%

 

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Anonymous 

This diff between QTD and last QTD or the % of that. You can find the formulas given above.

 

If you looking for a display. In matrix visual, you have an option show on the row. That will move your measures in the first column. and now move your QTR name to cols.

 

 

Anonymous
Not applicable

the difference I am looking for is % difference from one QTR to the next i.e. Q1 2020 % difference from Q4 2019, Q4 2019 % difference from Q3 2019 and so on

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.