Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I need to divide two different column values: quantity and sales and make a new column of unit_price. When I do this: quantity/sales I get an empty unit_price column. What should I do?
Hi,
You need to aggregate it like sum(sales/quantity) as unit_price
Best
Hi,
Put like this, Sum(quantity)/Sum(sales) as unit_price