需求 #22385
正式报表平台 - 用户筛选报表新增用户分层
描述
报表位置:活动监控-用户筛选
按月、按天新增上月用户gmv分层、上月销售额
分层规则: when u.reg_date between doi_last.special_date and doi_last.mon_last_date then '0-0_当月新注册' when (doi_last.sale_amount_last is null or doi_last.sale_amount_last <= 0) and (u.first_date > doi_last.mon_last_date or u.first_date is null) then '0-0_新客' when doi_last.sale_amount_last is null or doi_last.sale_amount_last <= 0 and u.first_date < doi_last.special_date then '0-0_老客' when doi_last.sale_amount_last <= 500 then '1-(0,500]' when doi_last.sale_amount_last <= 1000 then '2-(500,1000]' when doi_last.sale_amount_last <= 3000 then '3-(1000,3000]' when doi_last.sale_amount_last <= 5000 then '4-(3000,5000]' when doi_last.sale_amount_last <= 10000 then '5-(5000,10000]' when doi_last.sale_amount_last > 10000 then '6-(10000以上)'
刷新历史数据:按天刷新20年11月更新至今 按月更新至19年和20年