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
qwaiti27231
Helper III
Helper III

QoQ Calculation

Dear all

 

Need help in calculating quarter over quarter 

 

i used  this calculation

Previous quarter= CALCULATE(SUM('Table'[value]), FILTER(ALL('calendar'),'calendar'[rank]=MAX('calendar'[rank])-1))
Latest quarter = CALCULATE(SUM('Table'[value]), FILTER(ALL('calendar'),'calendar'[rank]=MAX('calendar'[rank])))

 

 

qoq%=((Latest quarter-Previous quarter)/Previous quarter)

 

problem arises when there is shift from 2018 to 2019

previous quarter doesnt  fetch data require q42019 when i select q12019 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @qwaiti27231 ,

 

Not sure how you created [rank] in your calendar table. Please try below calculated columns. Then, still use above measures to calculate QoQ.

Year-quarter = YEAR([Date])*10+[Date].[QuarterNo]
rank = RANKX('calendar',[Year-quarter],,ASC,Dense)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @qwaiti27231 ,

 

Not sure how you created [rank] in your calendar table. Please try below calculated columns. Then, still use above measures to calculate QoQ.

Year-quarter = YEAR([Date])*10+[Date].[QuarterNo]
rank = RANKX('calendar',[Year-quarter],,ASC,Dense)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
qwaiti27231
Helper III
Helper III

*previous quarter doesnt  fetch data require q42018 when i select q12019 

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.