SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

sathyarangaraj
Starting Member

India
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

sunitabeck
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:
=Format(dateadd("m",-1,Fields!YourDateField.Value),"yyyyMM")
Here, YourDateField is the parameter or column that has the date field.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000