Попробуйте это:
DROP TABLE IF EXISTS DataSource;
CREATE TEMPORARY TABLE DataSource
(
datestamp DATE
,product VARCHAR(12)
,sales INT
);
INSERT INTO DataSource (datestamp, product, sales)
VALUES ('2020-04-01', 'product_1',4327)
,('2020-04-01', 'product_2',1307)
,('2020-04-01', 'product_3',551)
,('2020-04-02', 'product_1',13106)
,('2020-04-02', 'product_2',1169)
,('2020-04-02', 'product_3',342)
,('2020-04-03', 'product_1',178)
,('2020-04-03', 'product_2',511)
,('2020-04-03', 'product_3',416)
,('2020-04-04', 'product_1',186)
,('2020-04-04', 'product_2',127)
,('2020-04-04', 'product_3',134);
select datestamp, product, sales, (sales * 1.0 / sum(sales) over (partition by datestamp) ) * 100.0
from DataSource
order by datestamp;