none
RDLC 表格嵌套饼图数据集作用域问题 RRS feed

  • 问题

  • Hi:

        我在表格中嵌套了一个饼图,表指定了一个数据集A,饼图使用的是数据集B,当我把饼图放到表格的时候,饼图的数据集变成了A,展现的数据也是A数据集的,当我在饼图中使用Sum(Fields!SECU_AMOUNT.Value, "B")去指定数据集的时候,饼图的展示数据是B的,但是当我在类别组中的组组表达式分组依据中同样使用Sum(Fields!RN.Value, "B")去指定依据B的RN值分组时,显示出错误:RDLC 图表“Chart9”的组表达式包含聚合函数。在组表达式中不能使用聚合函数。

        所以我想问下,有没有方法1.解决A数据集的作用域不让他出现在饼图中(这个我没找到...)2.在类别组中分组依据还有什么方式能够指定B数据集的RN字段呢?

       谢谢大家的帮忙~

    2019年6月3日 3:00

全部回复

  • Hi,

    有关RDLC报表的使用,我找到了以下博客文章或许你可以参考一下:

    ReportViewer和 rdlc报表使用小记

    RDLC 报表的制作(图文)

    rdlc报表将数据以饼图显示问题

    Regards,

    Kyle

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年6月4日 5:13