I am using the following DAX in the measure below:
UPS %No Maint Bypass =
VAR TotalMaintBypass =
COUNTROWS (
FILTER ( ALL ( 'UPS (2)' ), 'UPS (2)'[UPS Maintenance Bypass] = "TRUE" )
)
+ COUNTROWS (
FILTER ( ALL ( 'UPS (2)' ), 'UPS (2)'[UPS Maintenance Bypass] = "FALSE" )
)
+ COUNTROWS (
FILTER (
ALL ( 'UPS (2)' ),
'UPS (2)'[Redundant UPS Maintenance Bypass] = "TRUE"
)
)
+ COUNTROWS (
FILTER (
ALL ( 'UPS (2)' ),
'UPS (2)'[Redundant UPS Maintenance Bypass] = "FALSE"
)
)
VAR NoMaintBypass =
COUNTROWS (
FILTER ( ALL ( 'UPS (2)' ), 'UPS (2)'[UPS Maintenance Bypass] = "FALSE" )
)
+ COUNTROWS (
FILTER (
ALL ( 'UPS (2)' ),
'UPS (2)'[Redundant UPS Maintenance Bypass] = "FALSE"
)
)
RETURN
DIVIDE ( NoMaintBypass, TotalMaintBypass, 0 ) * 100 + 0
how can I add the if statement ('UPS (2)', IF('UPS (2)'[Redundant UPS] = "TRUE") when UPS (2)'[Redundant UPS Maintenance Bypass] is used. In 3 places.
Any assistance is appreciated.