Making cloud pixels invalid

I have carried out a cloud mask on a sentinel 2 imagery but I have a challenge with defining cloud pixels as invalid in the band properties so that they are not considered in the analysis I want to do.

please don’t open new topics on same question. Continue here instead: