Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Help with formula for indicator calculation

Hello, I have the following problem: at the time of calculating the indicators, these are not calculated properly, because it delivers as a result "infinite" and another inaccurate result (frame with blue image)

Jos_Valds_0-1642001506150.png

The formulas I use are the following:

1. man-hour formula so you can filter according to year
HH = CALCULATE(COUNTROWS('HH (Man Hours)'),filter('HH (Man Hours)','HH (Man Hours)'[year]="2021" && 'HH (Man Hours)'[Year]="2022"))

IF = calculate(([CTP]+[FATAL])*1000000/[HH])
CTP = CALCULATE(COUNTROWS(BD_SAP),BD_SAP[Type of injury] = "WITH LOST TIME")+0
FATAL = CALCULATE(COUNTROWS(BD_SAP),BD_SAP[Type of injury] = "Fatal")+0
I don't know how to correct it, since I'm a big newbie...
thank you for your support

5 Replies

  • it is not the result I need, I give you more details:

    The total hours of the year 2021 are: 16,122,188

    When extracting the CTP + FATAL gives me a sum of 13

    When making the formula (12+1)*1000000/16.122.188 the total should be: 0.81

    my database is this (attached excerpt. the first column is management, second column is the year, the third column is the month and year together and the final column is the total hours)

    Jos_Valds_0-1642003963244.png

    the ctp and fatal (CTP means with lost time and fatal means accidents with deceased people)

    the formula I use to extract the data from the database, for example is this

    CTP = CALCULATE(COUNTROWS(BD_SAP),BD_SAP[Type of injury] = "WITH LOST TIME")+0
    the database is as follows (extract attachment)
    Jos_Valds_1-1642004250570.png