Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have a question about adding up 2 or more fields in the data load Editor. E.G
Table:
ID,
Sales_Region_A,
Sales_Region_B
From XYZ
Now I need the Sum of total Sales in the script by ID. In the Front End it must be already calculated.
Is there any way? I already tried by just adding up, but it doesn't work-->
ID,
Sales_Region_A,
Sales_Region_B
Sales_Region_A + Sales_Region_B as Total_Sales
From XYZ.
Thanks
Hi,
Try the following code.
FinalTable:
Load
ID,
Sales_Region_A,
Sales_Region_B
Sum(Sales_Region_A + Sales_Region_B) as Total_Sales
Resident Table
Group by ID
;
Drop Table Table;
thx, with rangesum it works! Think it's because of the null values