Solved

Select a specified month

Posted on 2010-11-30
1
198 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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