Transposing Row Data as Columns in Crystal Reports

南楼画角 提交于 2019-12-02 07:30:45

Group the report by staff and place staff, Art, Sport, Music as text fields in Group header.

now in details section place data as

Staff, formula 1 (If Category='Art' then Amount), formula 2 (If Category='Sport' then Amount), formula 3 (If Category='Music' then Amount)

If Staff has only one value then its ok else place Staff in Group footer and take sum of all values in group footer (Don't remove Formula 1,2,3 from details)

Should be able to achive this in your sproc with a PIVOT Table. A helpfile on PIVOT tables can be found here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!