Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要RESULT = SUM(DISTINCT field1) - COUNT (field2)在 SSRS 2005 报告中计算一个组。
RESULT = SUM(DISTINCT field1) - COUNT (field2)
DISTINCTDISTINCT在 SSRS中是不允许的,如果我省略SUM太高(我有 field2,它在 field1 中出现多次)。
DISTINCT
SUM
我知道这是一个旧线程,但我希望它对其他人有帮助!
您需要编写自定义代码来应用聚合。
有关完整的参考和代码,请查看这篇文章以及此处评论部分中的答案。