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.
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 @Anonymous ,
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
@Anonymous , Check
last year end date = date(year(today())-1,12,31)
start date 5 years back = date(year(today())-5,1,1)
refer
@Anonymous , Check
last year end date = date(year(today())-1,12,31)
start date 5 years back = date(year(today())-5,1,1)
refer
Hi @Anonymous ,
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 ReportingCovering 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 |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
129 | |
106 | |
106 | |
86 | |
72 |