I have the following format of data :
Machine Name | Error_code_a | Error_code_b | Error_code_c | Error_code_d
MA01 | 0 | 1 | 0 | 0
MA02 | 1 | 0 | 1 | 0
MA02 | 1 | 1 | 1 | 0
Where 0
and 1
simply represents if an error code is present or absent.
I need one column where the TOTAL
or SUM
is displayed.
Example for MA01
, the sum column should show 1
, for MA02
it should show 2
(since 1+1).
I am able to do this column wise, but need some DAX query for doing it row wise.