Solved

SSRS RunningValue start with a particular row

Posted on 2011-09-19
4
1,027 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:faiga16
[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 500 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:faiga16
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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
In this article I will describe the Copy Database Wizard 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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 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