cancel
Showing results for 
Search instead for 
Did you mean: 

Issue on Case mapping

08-19-2022 8:54 PM
398 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

I have a field on my report that I want to return like this...Here is my SQL code If I were to do it in SQL. How can I return the same thing on my report in Crystal Syntax?


SUM(CASE WHEN {EstimatedItems.IsChange}=0 and {EstimatedItems.BudgetDeleted}<>1 THEN isnull ({EstimatedItems.BudgetPretax},0) + isnull({EstimatedItems.BudgetJCTAX},0) ELSE 0

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

DellSC
Active Contributor
0 Likes

I would handle it this way:

1. In the Formula Editor, turn on "Default Values for Null" which will automatically give you 0 as the default if the number is null. This handles the IsNull() part of your formula.

2. Create the following formula:

If {EstimatedItems.IsChange}=0 and {EstimatedItems.BudgetDeleted}<>1 THEN 
  {EstimatedItems.BudgetPretax} + {EstimatedItems.BudgetJCTAX}
ELSE 0

3. In your report, create a summary of this formula.

-Dell