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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Sivakumartn1
Frequent Visitor

YOY and QOQ %

Hi Experts! I have a data model below. I need help to create a calculation for YOY and MOM %. But in this calculation I want to calculate with date. For Example If I want to calculate YOY now 10/09/2022 This (Quarter-last year same quarter and date should be 10/09/2022)/last year same quarter and date should be 10/09/2022. Out put I want If the user select 2022Q3 YOY% should be calculate (This quarter actuals at this date-last year same quarter same date actuals)/last year same quarter same date actuals. (100-120)/120 =-16.66


I am trying with this measure but I want to calculate with date.


YOY % =
VAR thisYear =
CALCULATE('Common Measures'[Actuals])
VAR lastYear =
CALCULATE ('Common Measures'[Actuals], SAMEPERIODLASTYEAR ('DIM Date'[DATE_KY]) )
RETURN
DIVIDE ( thisYear - lastYear, lastYear, 0 )

Data model:-

Date Table with date key column
YearQuarterMonthDay
2022Q4October1
2022Q4October2
2022Q4October3
2022Q4October4
2022Q4October5
2022Q4October6
2022Q4October7
2022Q4October8
2022Q4October9

 

Actuals
YearQuarterActuals
2021Q1242
2021Q2443
2021Q3449
2021Q4538
2022Q1566
2022Q2890
2022Q3559
2022Q4244
3 REPLIES 3
Sivakumartn1
Frequent Visitor

Hi @amitchandak Join is there Single directional only.

Hi, @Sivakumartn1 

Could you please tell me whether your problem has been solved?

Best Regards,
Community Support Team _ Eason

 

amitchandak
Super User
Super User

@Sivakumartn1 , here Actual should be measure and datekey should be a date

CALCULATE ('Common Measures'[Actuals], SAMEPERIODLASTYEAR ('DIM Date'[DATE_KY]) )

 

Date table should be marked as date table, and join should be single directional

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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