1

使用列表和标签,是否可以使用小计创建多个级别的组?例如,如果我的表有以下列: 货币交易日期 交易类型 交易标识符 金额

我可以创建具有多个分组级别(例如货币、交易日期和交易类型)的报告吗?

即报告显示:

Currency 1  Transaction Date 1  Transaction Type 1  Transaction Identifier 1        250 
Currency 1  Transaction Date 1  Transaction Type 1  Transaction Identifier 2       (300)
    Total for Currency 1, Transaction Date 1, Transaction Type 1                    (50)

Currency 1  Transaction Date 1  Transaction Type 2  Transaction Identifier 3        100 
     Total for Currency 1, Transaction Date 1, Transaction Type 2                   100 

Currency 1  Transaction Date 1  Transaction Type 4  Transaction Identifier 4        125 
Currency 1  Transaction Date 1  Transaction Type 4  Transaction Identifier 5       (500)
    Total for Currency 1, Transaction Date 1, Transaction Type 4                   (375)
                        Total for Currency 1, Transaction Date 1                   (325)

Currency 1  Transaction Date 2  Transaction Type 1  Transaction Identifier 6        (75)
Currency 1  Transaction Date 2  Transaction Type 1  Transaction Identifier 7        600 
Currency 1  Transaction Date 2  Transaction Type 1  Transaction Identifier 8        400 
    Total for Currency 1, Transaction Date 2, Transaction Type 1                    925 

Currency 1  Transaction Date 2  Transaction Type 2  Transaction Identifier 9        100 
Currency 1  Transaction Date 2  Transaction Type 2  Transaction Identifier 10        25 
Currency 1  Transaction Date 2  Transaction Type 2  Transaction Identifier 11       (50)
Currency 1  Transaction Date 2  Transaction Type 2  Transaction Identifier 12      (100)
Currency 1  Transaction Date 2  Transaction Type 2  Transaction Identifier 13       100 
     Total for Currency 1, Transaction Date 2, Transaction Type 2                    75 

Currency 1  Transaction Date 2  Transaction Type 3  Transaction Identifier 14       200 
Currency 1  Transaction Date 2  Transaction Type 3  Transaction Identifier 15       800 
Currency 1  Transaction Date 2  Transaction Type 3  Transaction Identifier 16       100 
  Total for Currency 1, Transaction Date 2, Transaction Type 3                    1,100 
                      Total for Currency 1, Transaction Date 2                    2,100 

Currency 1  Transaction Date 3  Transaction Type 1  Transaction Identifier 17       (50)
Currency 1  Transaction Date 3  Transaction Type 1  Transaction Identifier 18     1,000 
Currency 1  Transaction Date 3  Transaction Type 1  Transaction Identifier 19       350 
   Total for Currency 1, Transaction Date 3, Transaction Type 1                   1,300 

Currency 1  Transaction Date 3  Transaction Type 5  Transaction Identifier 20        75 
    Total for Currency 1, Transaction Date 3, Transaction Type 5                     75 
                      Total for Currency 1, Transaction Date 3                    1,375 
                                          Total for Currency 1                    3,150 

Currency 2  Transaction Date 1  Transaction Type 1  Transaction Identifier 21       (75)
Currency 2  Transaction Date 1  Transaction Type 1  Transaction Identifier 22       600 
Currency 2  Transaction Date 1  Transaction Type 1  Transaction Identifier 23       800 
Currency 2  Transaction Date 1  Transaction Type 1  Transaction Identifier 24       (50)
Currency 2  Transaction Date 1  Transaction Type 1  Transaction Identifier 25       250 
Currency 2  Transaction Date 1  Transaction Type 1  Transaction Identifier 26       350 
Currency 2  Transaction Date 1  Transaction Type 1  Transaction Identifier 27      (300)
  Total for Currency 2, Transaction Date 1, Transaction Type 1                    1,575 

Currency 2  Transaction Date 1  Transaction Type 2  Transaction Identifier 28       100 
Currency 2  Transaction Date 1  Transaction Type 2  Transaction Identifier 29       125 
    Total for Currency 2, Transaction Date 1, Transaction Type 2                    225 

Currency 2  Transaction Date 1  Transaction Type 3  Transaction Identifier 30       400 
    Total for Currency 2, Transaction Date 1, Transaction Type 3                    400 

Currency 2  Transaction Date 1  Transaction Type 4  Transaction Identifier 31     1,000 
  Total for Currency 2, Transaction Date 1, Transaction Type 4                    1,000 
                      Total for Currency 2, Transaction Date 1                    3,200 

Currency 2  Transaction Date 2  Transaction Type 2  Transaction Identifier 32       (50)
Currency 2  Transaction Date 2  Transaction Type 2  Transaction Identifier 33      (100)
   Total for Currency 2, Transaction Date 2, Transaction Type 2                    (150)

Currency 2  Transaction Date 2  Transaction Type 3  Transaction Identifier 34       100 
    Total for Currency 2, Transaction Date 2, Transaction Type 3                    100 

Currency 2  Transaction Date 2  Transaction Type 4  Transaction Identifier 35        25 
    Total for Currency 2, Transaction Date 2, Transaction Type 4                     25 
    Total for Currency 2, Transaction Date 2                                        (25)

Currency 2  Transaction Date 3  Transaction Type 1  Transaction Identifier 36       100 
Currency 2  Transaction Date 3  Transaction Type 1  Transaction Identifier 37      (500)
   Total for Currency 2, Transaction Date 3, Transaction Type 1                    (400)

Currency 2  Transaction Date 3  Transaction Type 2  Transaction Identifier 38       100 
Currency 2  Transaction Date 3  Transaction Type 2  Transaction Identifier 39        75 
    Total for Currency 2, Transaction Date 3, Transaction Type 2                    175 

Currency 2  Transaction Date 3  Transaction Type 5  Transaction Identifier 40       200 
    Total for Currency 2, Transaction Date 3, Transaction Type 5                    200 
                        Total for Currency 2, Transaction Date 3                    (25)
                                          Total for Currency 2                    3,150 

Currency 3  Transaction Date 1  Transaction Type 1  Transaction Identifier 41       200 
Currency 3  Transaction Date 1  Transaction Type 1  Transaction Identifier 42       (50)
Currency 3  Transaction Date 1  Transaction Type 1  Transaction Identifier 43       100 
Currency 3  Transaction Date 1  Transaction Type 1  Transaction Identifier 44       (75)
Currency 3  Transaction Date 1  Transaction Type 1  Transaction Identifier 45       800 
Currency 3  Transaction Date 1  Transaction Type 1  Transaction Identifier 46      (100)
Currency 3  Transaction Date 1  Transaction Type 1  Transaction Identifier 47       250 
Currency 3  Transaction Date 1  Transaction Type 1  Transaction Identifier 48       400 
  Total for Currency 3, Transaction Date 1, Transaction Type 1                    1,525 

Currency 3  Transaction Date 1  Transaction Type 2  Transaction Identifier 49     1,000 
Currency 3  Transaction Date 1  Transaction Type 2  Transaction Identifier 50      (300)
     Total for Currency 3, Transaction Date 1, Transaction Type 2                   700 

Currency 3  Transaction Date 1  Transaction Type 3  Transaction Identifier 51       100 
    Total for Currency 3, Transaction Date 1, Transaction Type 3                    100 

Currency 3  Transaction Date 1  Transaction Type 5  Transaction Identifier 52       600 
    Total for Currency 3, Transaction Date 1, Transaction Type 5                    600 
                      Total for Currency 3, Transaction Date 1                    2,925 

Currency 3  Transaction Date 2  Transaction Type 1  Transaction Identifier 53       100 
Currency 3  Transaction Date 2  Transaction Type 1  Transaction Identifier 54        25 
Currency 3  Transaction Date 2  Transaction Type 1  Transaction Identifier 55       125 
Currency 3  Transaction Date 2  Transaction Type 1  Transaction Identifier 56       350 
    Total for Currency 3, Transaction Date 2, Transaction Type 1                    600 

Currency 3  Transaction Date 2  Transaction Type 2  Transaction Identifier 57       (50)
Currency 3  Transaction Date 2  Transaction Type 2  Transaction Identifier 58        75 
    Total for Currency 3, Transaction Date 2, Transaction Type 2                     25 
                        Total for Currency 3, Transaction Date 2                    625 

Currency 3  Transaction Date 3  Transaction Type 1  Transaction Identifier 59      (500)
   Total for Currency 3, Transaction Date 3, Transaction Type 1                    (500)

Currency 3  Transaction Date 3  Transaction Type 2  Transaction Identifier 60       100 
    Total for Currency 3, Transaction Date 3, Transaction Type 2                    100 
                       Total for Currency 3, Transaction Date 3                    (400)
                                          Total for Currency 3                    3,150 
4

1 回答 1

0

当然,您可以拥有任意数量的组级别。只需确保您的“分组依据”字符串考虑了层次结构。您将拥有三个组页脚,第一个具有 的“分组依据” ToString$(Currency),第二个是ToString$(Currency)+ToString$(TransactionDate),第三个是ToString$(Currency)+ToString$(TransactionDate)+ToString$(TransactionType)。请注意,您的数据源需要进行相应的排序 - 您上面的摘录在这方面看起来不错。

对于小计,只需为三个级别添加三个总和变量,然后在此处选择要重置的一个(在组页脚选项卡上相同):

列表和标签中的分组总和

您还可以在示例应用程序中找到分层分组示例(简单列表 > 带有分组的项目报告)

于 2020-01-28T06:56:59.827 回答