Crystal Sum with two conditions

user455580 picture user455580 · Dec 2, 2010 · Viewed 9.2k times · Source

I am trying to get summary by two conditions, much like Sumifs function of excel Like - Sum(Total_Costs) where Region = 4 and Currency = USD. Thanks in advance

Answer

Adriaan Stander picture Adriaan Stander · Dec 2, 2010

You will have to create a Formula called @Region4USD

Something like

if ({YourReport.Region} = 4 and {YourReport.Curency} = "USD") then
    {YourReport.Total_Cost}
else
    0

Then create a SUM on the formula