D K
01/24/2023, 8:19 AMD K
01/24/2023, 8:19 AMD K
01/24/2023, 8:21 AMVijay Narayanan
01/24/2023, 12:30 PMselect a.manf_desc,b.sales_year,b.sales_month,b.sales_quarter,(b.manf_dist_total_revenue/a.manf_total_revenue)*100 as rev_percent
(select '1' as key,LOOKUP(fe.product_id,'dim_prod_manf_desc') as manf_desc,sum(fe.dist_total_revenue) as manf_total_revenue
group by 1) a
(inner join
select '1' as key,LOOKUP(fe.product_id,'dim_prod_manf_desc') as manf_desc,sum(fe.dist_total_revenue) as manf_dist_total_revenue,
sales_year,sales_month,sales_quarter
from fact_extrapolated_revenue fe where __time >= TIME_PARSE ('2019-01-31T00:00:00.000Z')
AND __time < TIME_PARSE ('2022-11-30T00:00:00.000Z') AND
fe.product_id IN (select dp.product_id from denorm_dim_product_unspsc dp where
dp.taxonomy_id IN ('41151519','41151519','42311502','42311506','42311510','42311513','42311515','42311523','42311527','42311540','42311545','42311546','42311547','42311552','42312005','42312103','42312105','42312313','42312401'))
GROUP BY LOOKUP(fe.product_id,'dim_prod_manf_desc'),sales_year,sales_month,sales_quarter
order by sales_year,sales_month,sales_quarter) b on a.key=b.key
Vijay Narayanan
01/24/2023, 12:37 PMselect a.manf_desc,b.sales_year,b.sales_month,b.sales_quarter,(b.manf_dist_total_revenue/a.manf_total_revenue)*100 as rev_percent
from (select '1' as key,LOOKUP(fe.product_id,'dim_prod_manf_desc') as manf_desc,sum(fe.dist_total_revenue) as manf_total_revenue
group by 1) a
(inner join
select '1' as key,LOOKUP(fe.product_id,'dim_prod_manf_desc') as manf_desc,sum(fe.dist_total_revenue) as manf_dist_total_revenue,
sales_year,sales_month,sales_quarter
from fact_extrapolated_revenue fe where __time >= TIME_PARSE ('2019-01-31T00:00:00.000Z')
AND __time < TIME_PARSE ('2022-11-30T00:00:00.000Z') AND
fe.product_id IN (select dp.product_id from denorm_dim_product_unspsc dp where
dp.taxonomy_id IN ('41151519','41151519','42311502','42311506','42311510','42311513','42311515','42311523','42311527','42311540','42311545','42311546','42311547','42311552','42312005','42312103','42312105','42312313','42312401'))
GROUP BY LOOKUP(fe.product_id,'dim_prod_manf_desc'),sales_year,sales_month,sales_quarter
order by sales_year,sales_month,sales_quarter) b on a.key=b.key
D K
01/24/2023, 1:15 PMD K
01/24/2023, 1:17 PMMarekM
01/24/2023, 1:18 PMMarekM
01/24/2023, 1:19 PMMarekM
01/24/2023, 1:20 PMSlackbot
01/24/2023, 1:23 PMMarekM
01/24/2023, 1:24 PMSlackbot
01/24/2023, 8:13 PMSlackbot
01/25/2023, 1:52 AMSlackbot
01/25/2023, 7:19 AMSlackbot
01/25/2023, 10:39 AMSlackbot
01/25/2023, 1:19 PMSlackbot
01/25/2023, 4:03 PMSlackbot
01/25/2023, 8:36 PMSlackbot
01/26/2023, 2:32 PMSlackbot
01/26/2023, 5:09 PMSlackbot
01/26/2023, 5:47 PMJuan Jesus Prieto
01/26/2023, 5:48 PMSlackbot
01/26/2023, 5:50 PMD K
01/27/2023, 11:25 AMD K
01/27/2023, 11:25 AMSlackbot
01/27/2023, 11:25 AM