Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SSRS RunningValue start with a particular row

Posted on 2011-09-19
4
Medium Priority
?
1,052 Views
Last Modified: 2012-05-12
Hi Experts!

I need help figuring out how to configure the RunningValue function to start computing on a particular row.
It should always start accumulating on row 3. Here is my sample data:

ID        MyVal     Running Total            RowNumber
112     10                                           1
112      5                                            1
112      2          2                                1
202      3          5                                2
512      5          10                              3
125      1          11                              4
456      2          13                              5
 
The Row Number column is using the function ROW_NUMBER() -- just incase it's needed.

I tried different styles like:
=IIF(Fields!RowNum.Value = 1, "",RunningValue(Fields!MyVal.Value,SUM,NOTHING))

But it is still computing from the first row, it is just hidding those rows visually.

Thanks!
0
Comment
Question by:Faiga Diegel
[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
4 Comments
 
LVL 18

Expert Comment

by:lludden
ID: 36564343
make a hidden column and then sum that column.

IIF(Fields!RowNum.Value = 1,0,Fields!RowNum.Value))
0
 
LVL 9

Accepted Solution

by:
mimran18 earned 2000 total points
ID: 36564922
Hi,
   It will give you the running total after row 3 not from 1st row.

=RunningValue(iif(Fields!RowNum.Value >3, CDbl(Fields!MyVal.Value), CDbl(0)), Sum, Nothing)

Cheers
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 36565261
0
 
LVL 15

Author Closing Comment

by:Faiga Diegel
ID: 36567752
This works! I just had to change the RowNum value (of the 3rd 1s), so the RowNum looks like:

1
1
2
2
3
4
5

Thank you!
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Written by Valentino Vranken. Introduction: The first step of creating a SQL Server Reporting Services (SSRS) report involves setting up a connection to the data source and programming a dataset to retrieve data from that data source.  The data…
Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

596 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