Forum Discussion
Anonymous
6 years agoNot applicable
syntax Error - Filter = Hitting head
Hi All, I am trying to write a Measure that converts seconds to hours and then filters by date updated in the last 30 days. So far I am getting a syntax error on the filter and no matter what I...
- 6 years ago
Hi Anonymous ,
Try this:
Measure 3 = CALCULATE ( SUM ( 'CD'[Column1.fields.timeestimate] ) / 3600, DATESINPERIOD ( CD[Column1.fields.updated.1], LASTDATE ( CD[Column1.fields.updated.1] ), -30, DAY ) )
Best Regards
IceyIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Icey
6 years agoCommunity Support
Hi Anonymous ,
Try this:
Measure 3 =
CALCULATE (
SUM ( 'CD'[Column1.fields.timeestimate] ) / 3600,
DATESINPERIOD (
CD[Column1.fields.updated.1],
LASTDATE ( CD[Column1.fields.updated.1] ),
-30,
DAY
)
)
Best Regards
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.