Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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*"Estimated revenue",
If Probability = "30% - StageB" then 0.3*"Estimated revenue",
If Probability = "95% - StageC" then 0.95*"Estimated revenue",
How do I do that?
Solved! Go to Solution.
@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,
@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,
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?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
86 | |
68 | |
51 | |
32 |
User | Count |
---|---|
126 | |
112 | |
72 | |
64 | |
46 |