Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
hi @LangeJan
As there is no Date Table, i tried to create two measures like this:
SumTurnoverYTD =
VAR _day = MAX(tbl[date])
RETURN
CALCULATE(
SUM(tbl[Turnover]),
tbl[date]>=DATE(YEAR(_day),1,1)&&tbl[date]<=_day
)
SumTurnoverLYTD =
VAR _day = MAX(tbl[date])
RETURN
CALCULATE(
SUM(tbl[Turnover]),
tbl[date]>=DATE(YEAR(_day)-1,1,1)
&&tbl[date]<=DATE(YEAR(_day)-1, MONTH(_day),DAY(_day))
)
it worked like this:
Dear,
If I used quarters, please provide me with the measure. for financial Ratios
hi @LangeJan
As there is no Date Table, i tried to create two measures like this:
SumTurnoverYTD =
VAR _day = MAX(tbl[date])
RETURN
CALCULATE(
SUM(tbl[Turnover]),
tbl[date]>=DATE(YEAR(_day),1,1)&&tbl[date]<=_day
)
SumTurnoverLYTD =
VAR _day = MAX(tbl[date])
RETURN
CALCULATE(
SUM(tbl[Turnover]),
tbl[date]>=DATE(YEAR(_day)-1,1,1)
&&tbl[date]<=DATE(YEAR(_day)-1, MONTH(_day),DAY(_day))
)
it worked like this:
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 32 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 82 | |
| 66 | |
| 42 | |
| 27 | |
| 25 |