Forum Discussion
MrKwanorama
3 years agoMicrosoft Employee
Create calculated column based on text and probability%
Trying to create a calculated column to show the expected/probable revenue impact from a pipeline. This means the column should do a function as: If Probability = "10% - StageA" then 0.1*"Estima...
- 3 years ago
MrKwanorama ,
Is this your expectation?Probable revenue = SWITCH( TRUE(), 'Tablename'[Probability] = "10% - StageA", 0.1*'Tablename'[Estimated revenue], 'Tablename'[Probability] = "30% - StageB", 0.3*'Tablename'[Estimated revenue], 'Tablename'[Probability] = "95% - StageC", 0.95*'Tablename'[Estimated revenue], BLANK() )Thanks,
Arul
3 years agoSuper User
MrKwanorama ,
Is this your expectation?
Probable revenue =
SWITCH(
TRUE(),
'Tablename'[Probability] = "10% - StageA", 0.1*'Tablename'[Estimated revenue],
'Tablename'[Probability] = "30% - StageB", 0.3*'Tablename'[Estimated revenue],
'Tablename'[Probability] = "95% - StageC", 0.95*'Tablename'[Estimated revenue],
BLANK()
)
Thanks,
- MrKwanorama3 years agoMicrosoft Employee
Hi sorry - accepted too soon.
Gives me:
Function 'SWITCH' does not support comparing values of type True/False with values of type number.
I have the Estimated Revenue as Decimal Number and Probability as Text.
Any suggestion?