当前位置: 代码迷 >> PB >> 交叉报表排序有关问题
  详细解决方案

交叉报表排序有关问题

热度:88   发布时间:2016-04-29 09:53:32.0
交叉报表排序问题
动态字段aa里有三个数据,正常'普通','急忙','专家','免强',现在好像是按字母排列的,排列顺序是'急忙','免强',常'普通','专家'请各位前辈指点如何按正常排序

------解决方案--------------------
将你的sql语句由
select aa, ... from tb
改成
select aa, ..., case aa '普通' then 1 when '急忙' then 2 when '专家' then 3 when '免强' then 4 else 5 end as aa_sort

然后在columns中将aa_sort也拖进去,并且排在aa之上,然后ok
在dw中将Header[2] [email protected]_sort以外的列移到Header[3]中,并将Header[2]的高度设置为0
  相关解决方案