什么是绝对值同比
本期数据-同期数据/|同期数据| 例:2019年1月1日的gmv -2018年1月1日的gmv/|2018年1月1日的gmv|
什么是绝对值环比
本期数据-上期数据/|上期数据|...例:2019年2月2日的gmv -2018年2月1日的gmv/|2018年2月1日的gmv|
数据集准备
建表语句
create table new_table(
dt string,
area string...2018-12-04', 'hb', 'bj','2600000');
insert into new_table values('2018-12-05', 'hb', 'tj','1500000');
同比计算...)/abs(pre_sale)*1.00,2) is null,100,round((saleroom-pre_sale)/abs(pre_sale)*1.00,2)*100)
from tmp;
环比计算