Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Sum measure total on only negative values

Hi,   Generally, the measure must show when an employee is overbooked over a period. The measure needs only to sum the negative values of another measure. It works in a matrix filtered by employe...
  • Vvelarde's avatar
    7 years ago

     

    Anonymous 

     

    Hi, letw try with this measure:

     

    Only overbooked hours =
    SUMX (
        CROSSJOIN ( VALUES ( Employees[Name] ), VALUES ( 'Date'[Year & Month] ) ),
        IF ( [Cap-Allo] < 0, [Cap-Allo], BLANK () )
    )
    

    Regards

     

    Victor