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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi guys,
I've inherited a report, which has the DAX measure for YTD Variance as per below, which I can understand, but can you please help me to understand the "Vs YTD" and "Vs YTD_2"measure?
Can you please tell what's the DAX measure for YTD Variance?
YTD KPI Value Var = [KPI Value YTD] - [KPI Value LYTD]
Solved! Go to Solution.
Hi @ROG ,
I created some data:
You can try the following formula:
https://learn.microsoft.com/en-us/dax/varx-p-function-dax
https://learn.microsoft.com/en-us/dax/varx-s-function-dax
Here are the steps you can follow:
1. Create measure.
Measure =
var _today=TODAY()
return
VARX.P(FILTER(ALL('Table'),'Table'[Date]>=DATE(YEAR(_today),1,1)&&'Table'[Date]<=_today),[Amount])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @ROG ,
I created some data:
You can try the following formula:
https://learn.microsoft.com/en-us/dax/varx-p-function-dax
https://learn.microsoft.com/en-us/dax/varx-s-function-dax
Here are the steps you can follow:
1. Create measure.
Measure =
var _today=TODAY()
return
VARX.P(FILTER(ALL('Table'),'Table'[Date]>=DATE(YEAR(_today),1,1)&&'Table'[Date]<=_today),[Amount])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 21 | |
| 20 | |
| 20 | |
| 14 | |
| 14 |