Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Tablix compute pct chg from previous year quarter


Tablix compute pct chg from previous year quarter

Author
Message
chornung
chornung
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 78
Am having a problem in Visual Studio 2008 R2 tablix computing percent change from same quarter last year to this. The expression is in the Qtr detail row, and should be comparing count of FocusArea 2010-Q1 to count of FocusArea 2011-Q1.

Qtr is set up as a Child Column Group to its parent Year.

My expression is
=(COUNT(Fields!FocusArea.Value) - Previous(Count(Fields!FocusArea.Value), "Year"))/Previous(Count(Fields!FocusArea.Value))

I am getting a percentage but, based on the numbers displayed, it is not correct. I know the percentages showing in year 2010 will not be valid (since there is no 2009), but where did I go wrong with my expression???

Any help greatly appreciated!! ~Carol
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search