Forum Discussion
Injury Frequency Rate Moving Annual Calculation
- 9 years ago
Hi GregM,
In your scenario, check if the Month columns in those two tables are Date type. If not, please create a calculated column to return it as Date type.
Date = DATEVALUE("1-"&'Hours Table'[Month])
Then Create a calculated column to get moving 12 month LTIRF.
Moving12LTIRF = CALCULATE(SUMX( ALLSELECTED('LTI Table'), 'LTI Table'[LTI])/SUMX( ALLSELECTED('Hours Table'), 'Hours Table'[Hours])*1000000,
DATESINPERIOD (
'LTI Table'[Date],
LASTDATE ( 'LTI Table'[Date] ),
-12,
MONTH
)
)Best Regards,
Qiuyun Yu
Hi GregM,
In your scenario, check if the Month columns in those two tables are Date type. If not, please create a calculated column to return it as Date type.
Date = DATEVALUE("1-"&'Hours Table'[Month])
Then Create a calculated column to get moving 12 month LTIRF.
Moving12LTIRF = CALCULATE(SUMX( ALLSELECTED('LTI Table'), 'LTI Table'[LTI])/SUMX( ALLSELECTED('Hours Table'), 'Hours Table'[Hours])*1000000,
DATESINPERIOD (
'LTI Table'[Date],
LASTDATE ( 'LTI Table'[Date] ),
-12,
MONTH
)
)
Best Regards,
Qiuyun Yu
Excellent, works well. Thank you very much. GregM