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

Quarter over Quarter analysis Analysis

Want to calcualte Quarter VS Quarter for below data in power bi quarter and year column is not in date format .
navneet0512_0-1695278396475.png

 

6 REPLIES 6
navneet0512
Helper III
Helper III

@Kishore_KVN Can you please help me with above error?

navneet0512
Helper III
Helper III

Have a look .

Kishore_KVN
Super User
Super User

Hello @navneet0512 ,

Create one new date column with the help of that year column. 

Date Column = DATE('TABLE'[Years],01,01)

Then create new calendar table then create relationship with this date column and calculate Quarter Over Quarter.

You can use below calculation for reference.

QoQ Sales Change = 
VAR CurrentQuarterSales = SUM('YourTable'[Sales])
VAR PreviousQuarterSales = CALCULATE(SUM('YourTable'[Sales]), DATEADD('DateTable'[Date], -1, QUARTER))
RETURN IF(ISBLANK(CurrentQuarterSales) || ISBLANK(PreviousQuarterSales), BLANK(), (CurrentQuarterSales - PreviousQuarterSales) / PreviousQuarterSales)

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

After date column creation :- If i am selecting quarter 2009Q2 then in date column it is 01/01/2009

navneet0512_0-1695282354110.png

 

Got it, create this way then

Date Column = 
Switch(True(),
Right(Quarter_Column,1) = 1 , DATE(Year_Column,01,01),
Right(Quarter_Column,1) = 2 , DATE(Year_Column,04,01),

Right(Quarter_Column,1) = 3 , DATE(Year_Column,07,01),

Right(Quarter_Column,1) = 4 , DATE(Year_Column,10,01),

BLANK()
)

First I created A date column like below :- 

navneet0512_1-1695284131069.png

Then created a calendar table :- 

navneet0512_2-1695284184994.png

Then build realtionship between :- Calendar date column and RaW date_column .
Than calcualted QOQ as per your refrence :- 

navneet0512_3-1695284301675.png

Not able to get the QOQ why? @Kishore_KVN 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.