Forum Discussion

DonPepe's avatar
DonPepe
Helper II
4 years ago
Solved

Dax Addition incorrect

Hi,   Do you know what is the cause of my false addition ? 35,00+3,00 is 38,00 not 38,75 or 38,21 or... See below : in HperOSP, I add OSPDur to Boni If I have a Y in the table. here the measure : ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi DonPepe ,

     

    Firstly, create a flag measure to filter the table:

    Flag = IF(MAX('CurrentWeek'[Activity Name])="Rust" && MAX('CurrentWeek'[RustBoni]) = "Y" ,1,0)
    OSPDur = CALCULATE(SUM(CurrentWeek[PLA Duration (seconds)]) /3600,FILTER(ALL(CurrentWeek), [Activity Name]<>"Rust"))
    Boni = [OSPDur]*0.6/7

    Output is the same as your Test table returns:

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.