【问题标题】:SSRS Report - Reporting Services RDLCSSRS 报告 - 报告服务 RDLC
【发布时间】:2019-01-08 02:07:55
【问题描述】:

我正在尝试做一个报告,我的报告中只放了3个指标,全列中最高的3个值。我已经尝试了几种解决方案,但我仍然不明白。

This is the example, the left column is how I can do it, but I need only the 3 highest ones as I will show later

that's how I'd like to show it

如果有人能告诉我怎么做,我会很感激你的帮助

谢谢。

【问题讨论】:

    标签: visual-studio reporting-services ssrs-2008 rdlc


    【解决方案1】:

    您应该在底层查询中使用 TOP 和 ORDER BY:

    SELECT TOP 3
        [FirstValue],
        [SecondValue]
    FROM [YourTable]
    ORDER BY [FirstValue] ;
    

    如果您无法更改查询,您可以尝试在 SSRS 中添加行号,然后隐藏行号 > 3 的所有行。请参阅此帖子: how-to-get-total-of-top-10-sales-in-ssrs-2012.

    【讨论】:

    • 在查询中我不能发送它,它必须直接在报告中。有什么办法吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多