Skip to content
Advertisement

Multiple condition calculated column

I’m trying to figure out what’s the best approach for this:

I need this column to be “persisted”, so that I can use it on reports.

For another column, I’ve used this and works:

Started with the this other code but it’s not working and it still doesn’t have the condition for the checkbox.

How can I proceed?

Advertisement

Answer

In the short term, Tab is right about your typo.

In the bigger picture, you can save yourself some CPU time by taking advantage of the fact that CASE conditions are evaluated in order, so if you go backwards you only need to evaluate the last parameter. Also, by using the POWER trick, you’ll dodge the division by 0 error without having to introduce another CASE expression.

Alternative included if FieldD is a bit.

The values for FieldA vary between your problem statement and your code. I used the problem statement. Alter if needed.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement