Please fix this formula and also add a NULLIF(<...
# ask-stanley-ai
n
Please fix this formula and also add a NULLIF(<denominator>,0 CASE WHEN {amountunbilled} / {amount} < 0.1 THEN Yes ELSE No END
c
AI generated answer (using internal Slack threads):
Based on the conversations, the formula you provided can be fixed by adding a NULLIF function to avoid division by zero errors. The NULLIF function returns a null value if the two specified expressions are equal. Here, we use it to return null if the denominator is zero, thus avoiding a division by zero error. The corrected formula would be:
Copy code
CASE WHEN {amountunbilled} / NULLIF({amount}, 0) < 0.1 THEN 'Yes' ELSE 'No' END
Please note that 'Yes' and 'No' are enclosed in quotes as they are string values. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.856662691
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849497616
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842535079
Please provide your feedback on this answer.