Hi,
I have a datatable having 2 columns
CustomerName|| Total Price
--------------------------
A --> 10
B --> 20
----> 30
B --> 10
----> 30
C --> 10
There are 4 customers A,B,C and " " i.e blank.
I want to use compute function
datatable.compute(sum("total price"),"Customer Name=" " ") ---------> if Customer Name is blank .
also if possible i want to replace "" to blank i.e if customername.contains("") then customername.replace("","Blank")
the datatable after compute should look like below
Customer Name Total Price
A 10
B 30
Blank 60
C 10
I have a datatable having 2 columns
CustomerName|| Total Price
--------------------------
A --> 10
B --> 20
----> 30
B --> 10
----> 30
C --> 10
There are 4 customers A,B,C and " " i.e blank.
I want to use compute function
datatable.compute(sum("total price"),"Customer Name=" " ") ---------> if Customer Name is blank .
also if possible i want to replace "" to blank i.e if customername.contains("") then customername.replace("","Blank")
the datatable after compute should look like below
Customer Name Total Price
A 10
B 30
Blank 60
C 10