Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
hi @Sofia_A ,
Not sure if i fully get you. Supposing you have a data table like:
you may try:
1) create a dates table like:
dates = ADDCOLUMNS( CALENDARAUTO(), "Year", YEAR([date]) )
2) relate the dates[date] with data[date] with 1:M relationship.
3) try to plot at table visual with dates[Year] column and a measure like:
AmtPY =
VAR _lastrecordday =
MAXX(
FILTER(
ALL(data),
data[date]<MIN(dates[date])
),
data[Date]
)
VAR _result =
SUMX(
FILTER(
ALL(data),
YEAR(data[date]) = YEAR(_lastrecordday)
),
data[Amt]
)
RETURN COALESCE(_result, 0)
it worked like:
hi @Sofia_A ,
Not sure if i fully get you. Supposing you have a data table like:
you may try:
1) create a dates table like:
dates = ADDCOLUMNS( CALENDARAUTO(), "Year", YEAR([date]) )
2) relate the dates[date] with data[date] with 1:M relationship.
3) try to plot at table visual with dates[Year] column and a measure like:
AmtPY =
VAR _lastrecordday =
MAXX(
FILTER(
ALL(data),
data[date]<MIN(dates[date])
),
data[Date]
)
VAR _result =
SUMX(
FILTER(
ALL(data),
YEAR(data[date]) = YEAR(_lastrecordday)
),
data[Amt]
)
RETURN COALESCE(_result, 0)
it worked like:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 12 | |
| 10 | |
| 10 | |
| 9 | |
| 8 |