Solved

Dataset field Displaying previous month instead of current month in SSRS

Posted on 2011-03-25
6
622 Views
Last Modified: 2016-02-15
I need to used a dataset field month to display current month but the expression below is giving me February instead of March? How can I adjust the expression below to return current month i.e March?

Fields!Month.Value & ", " & Fields!Year.Value


--------------------------------------------------------------------------------
0
Comment
Question by:Projack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
6 Comments
 
LVL 2

Expert Comment

by:Micheal Hunt
ID: 35218479
If you just need the current month displayed, you can do something like add a field to the report containing month(Today) as a datasource.  Is that what you're trying to do, or do you need the date to come from a field in your dataset?
0
 

Author Comment

by:Projack
ID: 35218705
The Fields!Month.Value  is coming from this expression in the MDX query within the dataset;
[Dim Time].[Calendar].[Month].ALLMEMBERS
But instead of Fields!Month.Value  giving me March it gives February.
0
 

Accepted Solution

by:
Projack earned 0 total points
ID: 35218801
I found the solution I simply replace Fields!Month.Value with = MonthName(Month(Now())). And it worked. The SSAS was giving me default month in 2011 which was february but by assigning Month(now) into the MonthName function it return current month
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

Author Comment

by:Projack
ID: 35218860
I researched I solved the issue because I need to resolve it ASAP
0
 

Author Comment

by:Projack
ID: 35218866
I researched I solved the issue because I need to resolve it ASAP
0
 

Author Closing Comment

by:Projack
ID: 35252814
I researched I came out with solution becuase I need to resolved the issue before the COB
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question