Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
104 | |
77 | |
68 | |
61 |
User | Count |
---|---|
148 | |
107 | |
107 | |
83 | |
70 |