【问题标题】:Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope报表项表达式只能引用同一分组范围或包含分组范围内的其他报表项
【发布时间】:2019-03-28 07:58:09
【问题描述】:

我有一个报告,其中有几个静态行,每行都有自己的过滤器和组,字段 Prem 是根据为每个行组设置的过滤器计算的。 我需要将所有行汇总为一个总数:

=ReportItems!TextBox248.Value + ReportItems!TextBox249.Value + ReportItems!TextBox250.Value + 
 ReportItems!TextBox251.Value + ReportItems!TextBox252.Value + ReportItems!TextBox253.Value + 
 ReportItems!TextBox254.Value

但是,我在运行报告时收到此错误:

文本框“Textbox267”的值表达式指的是 报告项目“TextBox248”。报表项表达式只能引用 同一分组范围内或包含的其他报表项 分组范围。报告项目名称中的字母必须使用 正确的大小写。

【问题讨论】:

    标签: reporting-services report ssrs-2008 reporting ssrs-2012


    【解决方案1】:

    这里的解决方案非常简单,但 SSRS 区分大小写。当文本框的名称实际上是 Textbox 时,看起来您的表达式使用了 TextBox。很简单,你应该使用这个表达式。

    =ReportItems!Textbox248.Value + ReportItems!Textbox249.Value + ReportItems!Textbox250.Value + 
     ReportItems!Textbox251.Value + ReportItems!Textbox252.Value + ReportItems!Textbox253.Value + 
     ReportItems!Textbox254.Value
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-25
      • 1970-01-01
      • 1970-01-01
      • 2013-01-25
      相关资源
      最近更新 更多