I think the problem is that you're effectively double grouping. Try the following:
WITH SALES AS (
SELECT
period, kode_lang, namaprod,
kode_comp, kode_type, kodesalur, company,
SUM(sales) AS sales
FROM
nv..bi_data2015_v1
GROUP BY
period, kode_lang, namaprod,...