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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
power_bi_123456
Frequent Visitor

YTD and YoY for Measure

I'm creating a media dashboard with metrics like CPM, CTR, CPC, etc.

 

I was asked to add benchmarks to compare. YTD and YoY. How do I calculate that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @power_bi_123456 ,

 

You can use the following formulas:

 YTD = TOTALYTD (SUM (Table [Metric]), Date [Date])
 PYTD = CALCULATE ([YTD], SAMEPERIODLASTYEAR (Date [Date]))
 YoY = [YTD] - [PYTD]
 YoY % = DIVIDE ([YoY], [PYTD])

For more information., see:

How to Calculate YTD, MTD, WTD in Power BI (aforanalytic.com)

How to Create YTD Calculations in Power BI​ | phData

 

Best Regards,

Neeko Tang

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
Anonymous
Not applicable

Hi @power_bi_123456 ,

 

You can use the following formulas:

 YTD = TOTALYTD (SUM (Table [Metric]), Date [Date])
 PYTD = CALCULATE ([YTD], SAMEPERIODLASTYEAR (Date [Date]))
 YoY = [YTD] - [PYTD]
 YoY % = DIVIDE ([YoY], [PYTD])

For more information., see:

How to Calculate YTD, MTD, WTD in Power BI (aforanalytic.com)

How to Create YTD Calculations in Power BI​ | phData

 

Best Regards,

Neeko Tang

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

lbendlin
Super User
Super User

Power BI has a "Quick Measures"  feature which includes examples for the patterns you mentioned.  Try them out.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.