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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
I want to create a measure to select throgh it YTD for last year and i tryed but as below :
=calculate( YTD, sameperiodlastyear(date))., but i did't got a result.
Could you please support me to create a correct m,easure.
Thanks in advace
Solved! Go to Solution.
Hi @Talal141218
please try
YTD LY =
CALCULATE (
[Measure],
FILTER (
SAMEPERIODLASTYEAR ( 'Date'[Date] ),
VALUE ( FORMAT ( [Date], "mmdd" ) ) <= VALUE ( FORMAT ( TODAY (), "mmdd" ) )
)
)
Hi @Talal141218
please try
YTD LY =
CALCULATE (
[Measure],
FILTER (
SAMEPERIODLASTYEAR ( 'Date'[Date] ),
VALUE ( FORMAT ( [Date], "mmdd" ) ) <= VALUE ( FORMAT ( TODAY (), "mmdd" ) )
)
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 7 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 25 | |
| 10 | |
| 10 | |
| 6 | |
| 6 |