Solved! Go to Solution.
Replace 2019 with YEAR(TODAY()) - 1
That will move forward. So DATE(YEAR(TODAY()) - 1, 12, 31)
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi @reynags91 ,
You can update the formula of your measure or calculated column as below:
Measure =
CALCULATE (
AVERAGE ( 'Working Gas in Underground Storage (W)'[VALUE] ),
DATESBETWEEN (
'Working Gas in Underground Storage (W)'[DATE],
DATE ( Year(Today())-5, 01, 01 ),
DATE ( Year(Today())-1, 12, 31 )
)
)
Best Regards
Rena
@reynags91 , Check
last year end date = date(year(today())-1,12,31)
start date 5 years back = date(year(today())-5,1,1)
refer
Proud to be a Super User!
@reynags91 , Check
last year end date = date(year(today())-1,12,31)
start date 5 years back = date(year(today())-5,1,1)
refer
Proud to be a Super User!
Hi @reynags91 ,
You can update the formula of your measure or calculated column as below:
Measure =
CALCULATE (
AVERAGE ( 'Working Gas in Underground Storage (W)'[VALUE] ),
DATESBETWEEN (
'Working Gas in Underground Storage (W)'[DATE],
DATE ( Year(Today())-5, 01, 01 ),
DATE ( Year(Today())-1, 12, 31 )
)
)
Best Regards
Rena
Replace 2019 with YEAR(TODAY()) - 1
That will move forward. So DATE(YEAR(TODAY()) - 1, 12, 31)
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingUser | Count |
---|---|
467 | |
207 | |
115 | |
58 | |
57 |
User | Count |
---|---|
488 | |
254 | |
145 | |
78 | |
74 |