Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
GregM
New Member

Injury Frequency Rate Moving Annual Calculation

Hi, trying to calculate Injury Frequency Rates. Able to do YTD calculation and also Fiscal year, but need to calculate the moving annual Injury Frequency Rate on a monthly basis. Anyone able to help? 

Thanks

1 ACCEPTED SOLUTION

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
    )
)

 

q2.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-qiuyu-msft
Community Support
Community Support

Hi @GregM,

 

Can you share some dummy data and corresponding desired results for our analysis?

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks

 

Sample data as follows.

 

LTIFR = (LTI / Hours)*1000000

Calculated over a 12 month period

 

 

 

Desired results for LTIFR over rolling annual period:

 

4.541249 (Annual period Jul-15 to Jun-16)

4.513267 (Annual period Aug-15 to Jul-16)

4.502745 (Annual period Sep-15 to Aug 16)

and so on

 

LTI Table    Hours Table 
MonthLTI   CompanyMonthHours
Jul-150   ABCJul-1570,415
Aug-151   ABCAug-1573,051
Sep-150   ABCSep-1571,654
Oct-150   ABCOct-1573,992
Nov-150   ABCNov-1571,653
Dec-150   ABCDec-1573,992
Jan-160   ABCJan-1675,327
Feb-160   ABCFeb-1670,556
Mar-160   ABCMar-1675,687
Apr-160   ABCApr-1673,842
May-162   ABCMay-1676,440
Jun-161   ABCJun-1674,206
Jul-160   ABCJul-1675,876
Aug-161   ABCAug-1675,122
Sep-160   ABCSep-1671,218
Oct-161   ABCOct-1673,992
Nov-160   ABCNov-1671,169
Dec-160   ABCDec-1673,616
Jan-172   ABCJan-1773,427
Feb-170   ABCFeb-1765,790
Mar-170   ABCMar-1771,921
Apr-170   ABCApr-1769,101
May-170   ABCMay-1776,440
Jun-170   ABCJun-1770,980
        
        
        

 

 

 

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
    )
)

 

q2.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Excellent, works well. Thank you very much. GregM

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.