Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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?
Solved! Go to Solution.
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.
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.
Power BI has a "Quick Measures" feature which includes examples for the patterns you mentioned. Try them out.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.