• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 692
  • Last Modified:

SRSS: Current / Last Fiscal Year Sum Calculation?

Hi EE,
I’m new to SQL Server Reporting Services but what I’m trying to achieve is creating a field on the report that looks at a total sum of product sold in the Current Fiscal Year (Starting 01-05-2011 to 30/11/2011) and then also have second field which looks at the a total sum of product sold for Last Fiscal Year (Starting 01-05-2010 to 30/11/2010) the end dates for both would then change to last day of Current December \ Last December  when we get into January and so on.
Has anyone done anything like this before in SRSS
Thank you for all you Help in Advance :)
Ross Turner
Ross Turner
2 Solutions
what you are asking for is best to make as a stored procedure with the parameters
of your begin and end dates. With the parameters you are not forcing yourself to only just one kind of report.
With the parameters you can do it by the year , the month, the week , or even the day.
The parameters are passed from the report to the SP and the query returns back to the report the answers you need to fill the report.
Mark WillsTopic AdvisorCommented:
Yep, would agree.

Create the Stored Procedure to output all the columns you need - let the stored procedure do all the procedural work for you, so, your report is much more simplified...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now