Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Calculation giving the same value against every row

Hello,   I want to calculate the total Up Time on the basis of "Hours Of Operational Use". I have written the below DAX measure for the same.   vTotalUptime = IF(MAX('Service Availability'[Hours...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Thanks tamerj1  for your time and effort to get this calculation correct. 

    What I discovered later is that the problem was not with the DAX witten by me. I was making use of column 'Hours of Operational Use' from wrong table which was causing this problem. After changing the table, the same DAX started giving the correct output. Please see below snapshot. 

    But I must admit that your modified DAX version is simple and easy to understand.

    Thanks Again for your quick help. Much appreciated. Cheers.