Solved

SSRS 2008 How to replicate RunningTotal and evaluate options that are available in Crystal

Posted on 2013-06-06
9
523 Views
Last Modified: 2013-07-02
I have a crystal report that I am rebuilding inside of SSRS. In my crystal report I have a running total field that is the Sum of "detail.amount". I have a formula I use to evaluate and return the amount if {@StringType}= 'h'. "StringType" is a formula field that gives me left({Detail.joballoc},1)

Can someone tell me how I can accomplish the same thing inside of SSRS?

Any help is much appreciated.

Thanks!
0
Comment
Question by:J C
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 8

Expert Comment

by:rpkhare
ID: 39226800
There are plenty of links if you search Google to get running total.

Check this link:

Running totals per page in SSRS to display cumulative totals.
0
 

Author Comment

by:J C
ID: 39227635
Did you read my entire question? I know there is a RunningValue operator but I need to place conditions on it. I explained my scenario. Any further assistance is appreciated.
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 39228025
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:J C
ID: 39229574
This is what I have constructed based on what PatelAlpesh provided. When the report is run it displays "Error". Do you see anything wrong with this expression?

=RunningValue(IIF(LEFT(Fields!joballoc.Value,1) = "H", Fields!detail_amount.Value, 0),Sum,"DataSet1")
0
 
LVL 8

Expert Comment

by:rpkhare
ID: 39229874
@jleecole:

Sorry I missed your point in my previous answer.

What exactly is the error message?
0
 

Author Comment

by:J C
ID: 39229891
It only tells me #Error
0
 

Author Comment

by:J C
ID: 39229919
Warning      1      [rsAggregateOfMixedDataTypes] The Value expression for the textrun ‘Textbox109.Paragraphs[0].TextRuns[3]’ uses an aggregate function on data of varying data types.  Aggregate functions other than First, Last, Previous, Count, and CountDistinct can only aggregate data of a single data type.
0
 
LVL 8

Accepted Solution

by:
rpkhare earned 500 total points
ID: 39230180
Please try few things:

=RunningValue(IIF(LEFT(Fields!joballoc.Value,1) = "H", Fields!detail_amount.Value, Nothing),Sum,"DataSet1") 

Open in new window


or

=RunningValue(IIF(LEFT(Fields!joballoc.Value,1) = "H", CDbl(Fields!detail_amount.Value), CDbl(0)),Sum,"DataSet1") 

Open in new window


Try both these ways and let me know.
0
 

Author Comment

by:J C
ID: 39235760
rpkhare,

Can't thank you enough.

=RunningValue(IIF(LEFT(Fields!joballoc.Value,1) = "H", Fields!detail_amount.Value, Nothing),Sum,"DataSet1") worked!

Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question