Grand Total Cross Tab rows alongwith columns?

时光总嘲笑我的痴心妄想 提交于 2019-12-25 00:09:11

问题


I want to total a cross tab report like

GroupName  Items    Item% 1stStock 2ndStock  ------ nStock
---------  -----   ------ -------- --------         ------- 
 Fruits    Apples     5       100    100             500
           Tomatoes   10      200     50             200
           Mangoes    10      300     50             100
------------------------------------------------------------ 
 Total                25%     600    200              800 
------------------------------------------------------------
 Vegetables Carrots   40      10      20    ---------  20
 ------------------------------------------------------------ 
 Total                40%     10      20    ---------  20  
------------------------------------------------------------
 GrandTotal           65%     610    20               820 

How do I make sub totals and grand totals for the rows ?


回答1:


One of these should work for you:

Manual Method:

  1. Group your report by GroupName
  2. Drag & drop your fields onto the details section.
  3. On each of your numeric fields, right click->insert->summary (turn on "add to all group levels" to create both a subtotal and a grandtotal)

Crystal's Crosstab Method:

  1. Make a blank crosstab in your report header.
  2. In the Crosstab Expert, define your Rows as {GroupName} and {Items}.
  3. For Summarized Fields, sum your {nStock} fields.
  4. Leave the Crosstab Expert and right click->Row Grand Totals->Totals on Top to put the subtotals below the individual values.


来源:https://stackoverflow.com/questions/4582395/grand-total-cross-tab-rows-alongwith-columns

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