Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
carolin01
Luminary Alumni
Luminary Alumni

Sum & Aggregation

screenshot.jpg

Hi,

Could anybody help my with that mistake in the Sum-Formula? Is the Statement to Group by OverallTransactionDate correct for an aggregration of the sum?

Many thanks in advance.

Carolin

1 Solution

Accepted Solutions
its_anandrjs

May be try different ways


Load

OveralTransactionDate,

Sum( If(OrderPhase_Desc = 'Revenue' ,  NettAmountUSD)) as SalesNettAmountUSD

From Location

Group By OverallTransactionDate;

Sorry i forget to add the Group by line

Regards

Anand

View solution in original post

4 Replies
its_anandrjs

I Believe SET analysis not worked in the load script.

Regards

Anand

its_anandrjs

May be try different ways


Load

OveralTransactionDate,

Sum( If(OrderPhase_Desc = 'Revenue' ,  NettAmountUSD)) as SalesNettAmountUSD

From Location

Group By OverallTransactionDate;

Sorry i forget to add the Group by line

Regards

Anand

Anonymous
Not applicable

Load

     OverallTransactionDate,

     sum(NettAmountUSD) as SalesNettAmountUSD

From

(qvd)

Where OrderPhase_Desc = 'Revenue'

Group by OverallTransactionDate

carolin01
Luminary Alumni
Luminary Alumni
Author

Many thanks for your quick help!!