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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Dynamic QoQ%

Hi All,

 

I have created the below 2 measures to calculate the QoQ% for my data.

 

For Quarter values we follow the month end approach, i.e

 

Q1 -> Feb-April

Q2 -> May - Jul

Q3 -> Aug - Oct

Q4 -> Nov- Jan

 

As of now I have hard coded the last Quarter values in my calculation for QoQ%. Is there a way I can make it dynamic? We're comparing this quarter data Vs Same day last quarter data for QoQ% example Since today is 29th Dec so I'll be comparing data of today 29th Dec with data of last quarter same day i.e from 29th Sep - 31st October 

 

QTD ACV = CALCULATE([ACV],DATESBETWEEN(ACV[CLOSE_DATE],"11-01-2022",TODAY()))
 
QOQ% =
VAR thisQ =
    [QTD ACV]
VAR lastQ =
    CALCULATE (
        [ACV],
        DATESBETWEEN(ACV[CLOSE_DATE],"09-29-2022","10-31-2022")
    )
RETURN
    DIVIDE ( thisQ - lastQ, lastQ, 0 )
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , First you have two create Qtr Rank and Day of Qtr

 

new column , in Date Table

Qtr Start Date = var _rem = mod(month([Date]),3)
return eomonth([Date], Switch(_rem,2,-1, 0,-2, 1,-3))+1

 

Qtr Rank = RANKX(all('Date'),'Date'[Qtr Start date],,ASC,Dense)

 

Qtr Day = DATEDIFF('Date'[Qtr Start Date],'Date'[Date],Day)+1

 

Measures

 

This Qtr = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])))
Last Qtr = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])-1))

 

This QTD = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank]) && [Qtr Day] <=max([Qtr Day])))
Last QTD = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])-1 && [Qtr Day] <=max([Qtr Day])))

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Thanks for the quick update.

 

I'll check the details and will update soon.

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.