我有一个数据集,它返回如下结果:
SELECT
[Name]
,[Count]
FROM [dbo].[TestTable1]
ID Name Count
------------------------------------------
1 International school 100
2 World school 200
3 Universe school 400
Here is the international school count: «Expr»
Here is the world school count: «Expr»
Here is the Universe school count: «Expr»
我正在寻找一个结果应该返回如下的表达式:
Here is the international school count: 100
Here is the world school count: 200
Here is the Universe school count: 400
这是我的示例表达式:
=IIF(First(Fields!Name.Value, "CountinOneBox")="International school",(Fields!Count.Value, "CountinOneBox"),"")
注意:sum(Fields!Count.Value, "CountinOneBox") 提供 700
希望我已经正确解释了这一点。我怎样才能得到这个结果?谢谢。