Forum Discussion

CourtneyLeah's avatar
CourtneyLeah
Frequent Visitor
9 years ago
Solved

Filter not working with measure results

Hi,   I have a report that looks at all of our health and safety data. One of the filters that I have on this report ensures that only data associated with a date less than or equal to today is sho...
  • Phil_Seamark's avatar
    Phil_Seamark
    9 years ago

    Yeah, I think that might be the issue.

     

    Athough this still probably only gives you the latest 12 months.  There are possibly some better techniques to achieve the same thing.  Let us know how you get on.

     

    TRIFR
        = (
            CALCULATE (
                SUM ( TRIFR[Fatal] ) + SUM ( TRIFR[Notifiable] )
                    + SUM ( TRIFR[Lost Time] )
                    + SUM ( TRIFR[Medical Tretment] )
                    + SUM ( TRIFR[Reduced Work] ),
                DATESINPERIOD ( DateKey[Date], LASTDATE ( 'TRIFR'[Incident Date]  ), -12, MONTH )
            )
                * 1000000
        )
            / CALCULATE (
                SUM ( TRIFR[Work Hours] ),
                DATESINPERIOD ( DateKey[Date], LASTDATE ('TRIFR'[Incident Date]  ), -12, MONTH )
            )