Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 SSRS2K5 Moving Average

Author  Topic 

kingdjango
Starting Member

2 Posts

Posted - 2008-04-17 : 13:51:14
Hello Guys,

Im quite new to SSRS and SQL in general and i've found this site to be a goldmine, and I found a thread on here relating to moving averages but I don't think it meets my needs.

I have a simple bar chart in SSRS with a Category Field (Fields!WeekYear.Value) which has the week number and year value on the axis, and a Data Field (Fields!Amount.Value) which is just a quantity for the given week.

Now what I need is a Moving Average of the amount with each new week generated (Simple and 3-point and/or 5-point), I've tried using some code and even functions but nothing is working for me so I was wondering if anyone here can help me out?

PS I've been tinkering with the RunningValue function and my DataSet is called "Cube" so I assumed that the scope should be "Cube" aswell but it only returns an error, am I right or am I being retarded?

As I say I am very new so please be gentle with me :)

Thank You in advance.



Man im a n00b!

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-04-17 : 15:56:56
moved from New to SQL Server since it's better suited for SSRS dedicated forum.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-04-17 : 16:15:40
Was it this topic?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=93911



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

kingdjango
Starting Member

2 Posts

Posted - 2008-04-18 : 07:52:54
Yup Peso thats the one i saw, but it appears that it only works for a set amount of Catagory points, naturally as mine is week and year the scale could extend into infinity so i need something that will always work into the new week without manually changing the code.

Correct me if im wrong tho.

Man im a n00b!
Go to Top of Page
   

- Advertisement -