Solved

Select a specified month

Posted on 2010-11-30
1
200 Views
Last Modified: 2012-06-27
Hi I need to be able to select a specified month from the attached script when i put it in Reporting services. Please note that the are may rows with the same month in as this is the querymonth that the query was logged

I am not sure if i need to use a delcare date or how to put a where clause in so the user can chose a month
Select	QueryYear
		,QueryMonth
		,QueryMonth_No
		,BusinessDays
		,RealDays
		,employmentstatus
		,Region_Name
		,BusinessChannel
		,measure
		,ApplicationType_Name
		,QueryType_Name
		,QueryStatus_Name
		,QueryLevel1
		,querylevel2
		,querylevel3
		,Volume
From dbo.Query_Management_Dashboard

Open in new window

0
Comment
Question by:Davesm
[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
1 Comment
 
LVL 18

Accepted Solution

by:
x-men earned 500 total points
ID: 34238161
Create a new parameter Month on the report (@month) with the 12 possible values.

configure the dataset :

Select ...
From ...
Where QueryMonth in (@month)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
configure service broker on all databases 2 99
get most recent and second most recent date in SQL Server 24 117
Loops and updating in SQL Query 9 71
How can I find this data? 3 41
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦

732 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