Forum Discussion
PC2022
Helper III
1 year agoCONTAINS formula or something else?
I need to calculate sum score based on criteria that all 5 review phases evaluations are present for the project ID. For example, for the project below, the score shouldn't get calculated, as only 2 ...
- 1 year ago
Use CONTAINSSTRING instead.
lbendlin
Super User
1 year agowhat happened to the ORs ? Your filter needs to say II, not &&
PC2022
Helper III
1 year agoall 5 evaluations need to be there, so i need to use "and" &&
- lbendlin1 year ago
Super User
Logical operations are the other way round from casual speech. Your condition will ONLY be true if ALL the percentage strings are included in [Review Phase] TOGETHER.
- PC20221 year ago
Helper III
so what is the solution then 🙂 ?
- lbendlin1 year ago
Super User
put the ORs back in.
EvalJobComp = CALCULATE(SUMX(crb87_consultantevaluation,([EvalDesignComp30] * 0.7) + ([EvalConstrComp] * 0.3)),CONTAINSSTRING(crb87_consultantevaluation[Review Phase], "30% Design") ||CONTAINSSTRING(crb87_consultantevaluation[Review Phase], "60% Design") ||CONTAINSSTRING( crb87_consultantevaluation[Review Phase], "100% Design") ||CONTAINSSTRING( crb87_consultantevaluation[Review Phase], "Mid-Construction") ||CONTAINSSTRING( crb87_consultantevaluation[Review Phase], "Construction/Final"))