Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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:
User | Count |
---|---|
11 | |
9 | |
8 | |
7 | |
5 |
User | Count |
---|---|
24 | |
16 | |
15 | |
10 | |
7 |