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
Hello Everyone,
This is my measure for LY YTD but it shows complete year values, how can i modify it to show the last year year to date values?
@FR14 If your there is date table in the model, you can use time intelliegence functions like DATEADD , SAMEPERIODLASTYEAR for LY YTD calculations.
@FR14 You can modify the logic this way. This will give LY YTD values.
LY YTD Bookings Annualized =
VAR __MaxDate = MAX('Transaction Date'[Date])
VAR __StartDateLastYear = DATE(YEAR(__MaxDate)-1, MONTH(__MaxDate), DAY(__MaxDate))
RETURN
CALCULATE(
SUM(Orders[Annualized Value]),
'Transaction Date'[Date] >= __StartDateLastYear && 'Transaction Date'[Date] <= __MaxDate
)
Thank you for your support, this solution did not solve my problem. It works okay for this YTD but when i select other months and years values don't change
@FR14 You can try this
LY YTD Bookings Annualized =
VAR __MaxDate = MAX('Transaction Date'[Date])
VAR __StartDateLastYear = DATE(YEAR(__MaxDate)-1, 01, 01)
VAR __Enddate = DATE(YEAR(__MaxDate)-1,MONTH(__MaxDate), DAY(__MaxDate))
RETURN
CALCULATE(
SUM(Orders[Annualized Value]),
'Transaction Date'[Date] >= __StartDateLastYear && 'Transaction Date'[Date] <= __Enddate
)
Thank you i checked this one and it shows complete last year values not last year January.
Not really, it still shows complete last year data not last year January.
@FR14 You can try this, this will give for last year january to date
LY YTD Bookings Annualized =
VAR __MaxDate = MAX('Transaction Date'[Date])
VAR __StartDateLastYear = DATE(YEAR(__MaxDate)-1, 01, 01)
VAR __Enddate = DATE(YEAR(__MaxDate)-1, 01, DAY(__MaxDate))
RETURN
CALCULATE(
SUM(Orders[Annualized Value]),
'Transaction Date'[Date] >= __StartDateLastYear && 'Transaction Date'[Date] <= __Enddate
)
Thank you very much but result show me this year values when i implement it.
@FR14 You can try this
LY YTD Bookings Annualized =
VAR __MaxDate = MAX('Transaction Date'[Date])
VAR __StartDateLastYear = DATE(YEAR(__MaxDate)-1, 01, 01)
RETURN
CALCULATE(
SUM(Orders[Annualized Value]),
'Transaction Date'[Date] >= __StartDateLastYear && 'Transaction Date'[Date] <= __MaxDate
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |