【问题标题】:How to identify first column in Column Group?如何识别列组中的第一列?
【发布时间】:2015-09-15 23:53:40
【问题描述】:

是否存在标识列分组中第一列的表达式或任何方式?我希望该行中的第一列具有一定的值,而其余的则具有另一个值。

像这样:

If column in group = first, then firstValue, else otherValue

我一直在寻找和寻找,但找不到答案。

【问题讨论】:

  • 以下解决方案对您有用吗?

标签: reporting-services ssrs-2008 grouping ssrs-expression


【解决方案1】:

您可以使用SSRS中的First函数来获取第一列的值。

=IIF(FIRST(Fields!Column.Value, "ColGrp") = "First", "FirstValue",  "otherValue")

或者您也可以尝试这样的方法,您不必明确定义第一列的值。

=IIF(FIRST(Fields!Column.Value, "ColGrp") = Fields!Column.Value , "FirstValue",  "otherValue")

【讨论】:

    猜你喜欢
    • 2018-08-27
    • 2020-11-03
    • 1970-01-01
    • 1970-01-01
    • 2018-10-01
    • 1970-01-01
    • 2019-04-02
    • 2023-04-07
    • 2019-07-13
    相关资源
    最近更新 更多