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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Currentmonth -1 in SSRS 2008
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

11 Posts

Posted - 11/02/2012 :  04:54:53  Show Profile  Reply with Quote
Hi All,

How to get the currentmonth-1. I have Month in int format 201108, 201109 in table. But when the user selects 201108, it should pickup 201107.

Please help me to do this. Thank you all

Flowing Fount of Yak Knowledge

5155 Posts

Posted - 11/02/2012 :  08:35:22  Show Profile  Reply with Quote
What format is your underlying data? If it is a date then you can do something like this:
Here, YourDateField is the parameter or column that has the date field.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000