I thank you too soon! Your answer is correct but I got another problem!
In the chart I have an expression with set analysis which ignore (override) the user selection.
But if statement consider the selection, so the colors change even if they should not!!!
How can I ignore the selection with the if statement?