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 2008 Forums
 Analysis Server and Reporting Services (2008)
 Comparing two Time Frames in Report Builder

Author  Topic 

sqlfrankfurt
Starting Member

3 Posts

Posted - 2009-06-17 : 08:18:23
IO have a problem comparing two time ranges i.e. 01.01.2008-31.01.2008 with 01.01.2009-31.01.2009.

I managed to define the parameters for one time range, but when I try to do the same for a second time frame it does not give me the results.

Any ideas on how to find a solution are appreciated?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-17 : 11:17:03
how do you want to compare time frames? compare startdates and enddates?
Go to Top of Page

sqlfrankfurt
Starting Member

3 Posts

Posted - 2009-06-18 : 08:21:52
correct, I have lets say production per day data and want to compare my production for Jan 08 with Jan 09.

At the moment I can only include in my report one range as parameter start/ end date.

Maybe I am missing something here.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-18 : 14:30:47
that's easy . just pass two date alone (start and end). and in your query use a temporary table. first get data for period start-end and populate it. then populate it with data for period
start-1year to end-1 year. then return the data from temporary table grouped on year value
Go to Top of Page
   

- Advertisement -