Forum Discussion
elliegri
2 years agoRegular Visitor
Colour Conditional Formating
Hi all, I am new to Power BI and I am trying to create a graph that drills down from month to days to PCN to Practice - (I am working in healthcare). I have done this however I need to match the Pr...
vicky_
2 years agoSuper User
As you've noticed, the issue arises when there's more than 1 practice - and this is because the SELECTEDVALUE() function returns a blank in that case, so the lookup fails. One way around this is by wrapping your lookup in HASONEVALUE() - i.e:
Data Colour Admin = IF(HASONEVALUE(Table[Practice]),
// simply look up the colour...,
// else, your fallback logic here
)