Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi currently I am using the following SSRS code to give me a running total
=RunningValue(Fields!Total.Value, Sum, Nothing)

What I need is for the value to be of the negative so 2nd value minus 1st value etc.

Can anyone help?!

Thanks

What I have tried:

I have tried using Deviation function instead of sum
Posted
Comments
Sergey Alexandrovich Kryukov 27-May-16 14:43pm    
Deviation and Sum are different functions. :-)
What's wrong with the negative sum?
—SA
Member 12510569 29-May-16 16:55pm    
What is the syntax for negative sum

I have tried =RunningValue(Fields!Total.Value, "-", Nothing)
and =RunningValue(Fields!Total.Value, -, Nothing)

Sorry if this is a basic question, I'm new to this.
Sergey Alexandrovich Kryukov 29-May-16 17:10pm    
"Negative sum" is not a function, this is the case. Sum is the function. You cannot ask about "syntax", it makes no sense.
—SA
Member 12510569 29-May-16 17:01pm    
Quantity RunningTotal NegativeTotal
10 10 10
15 25 5
20 45 5

This might be a better example of that I am trying to do.
So it's more the difference I'm looking for I think

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