Forum Discussion
azakir
Resolver I
4 years agoIF condition to show all values
Hi Guys. Need some help on an IF formula that I am trying to work out. Here's sample data: Equipment OEM Equipment Code 320 EX234 793 EX235 950 EX236 79...
- 4 years ago
You can use this DAX code and get the result:
Equipment Code Replacement =VAR _Numbers = CALCULATE(COUNT(Equipment[Equipment Code]),Equipment[Equipment OEM]=793,REMOVEFILTERS(Equipment[Equipment Code]))RETURNIF(SELECTEDVALUE(Equipment[Equipment OEM])=793,_Numbers,SELECTEDVALUE(Equipment[Equipment Code]))
ShahabHoghooghi
4 years agoFrequent Visitor
You can use this DAX code and get the result:
Equipment Code Replacement =
VAR _Numbers = CALCULATE(COUNT(Equipment[Equipment Code]),
Equipment[Equipment OEM]=793,
REMOVEFILTERS(Equipment[Equipment Code]))
RETURN
IF(SELECTEDVALUE(Equipment[Equipment OEM])=793,
_Numbers,
SELECTEDVALUE(Equipment[Equipment Code]))
- azakir4 years ago
Resolver I
Thanks ShahabHoghooghi this worked