我正在尝试在组外创建一列,以根据合计行中的条件汇总总数。如果我使用以下表达式
=sum(iif(Fields!VATApplicable="NO",Fields!Amount.Value,0))
运行时出现错误
如果我尝试将范围添加到值量,则表明无法在其中添加范围。
=sum(iif(Fields!VATApplicable="NO",sum(Fields!Amount.Value,"JournalList"),0))
有人能够帮助我构造此代码以使其正常工作吗?
答案 0 :(得分:1)
How about you create Extra column Let's call it VAT applicable and Set it as Fields!Amount.Value only when Fields!VATApplicable="NO"
This will contain Amount only for Rows where you have VATApplicable="NO".
Now at the bottom you could simply Add Total outside which will give you Grand Total.