Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to add the following expression to a textbox in my rdlc report:
=Sum(iif(Previous(Fields!VWINKEL.Value)<>Fields!VWINKEL.Value,Fields!VAANTALNIEUW.Value,0))


But it seems to be impossible to use the Previous expression in an sum function. I get this error message:

"The Value expression for the textbox contains an aggregate function (or RunningValue or RowNumber functions) in the argument to another aggregate function (or RunningValue). Aggregate functions cannot be nested inside other aggregate functions."

How can i resolve this problem?
Posted

Are you able to create another dataset in your report that has the first aggregate total? I've run into this issue before myself. I created a dataset that was the total, then the textbox was an aggregate of that dataset.
 
Share this answer
 
i have same problem
i unable to create first aggregate total?
i want as follow

=Sum(iif(Previous(Fields!VWINKEL.Value)<>Fields!VWINKEL.Value,Fields!VAANTALNIEUW.Value,0))
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900