收起
select 年份, 周, 业务线, 频次, 计数, concat(round(计数/sum(计数) over(partition by 年份,周,业务线),2),'%') as 占比 from 表
报告相同问题?