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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.