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
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 report on specific data range AND specific client
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 08/10/2014 :  09:38:54  Show Profile  Reply with Quote
Hi everyone!

Im new to SSRS and have recently built a SQL Server 2012 DB including a table that has all fields I wish to report on.

I have successfully created some basic reports in SSRS using Report Builder.

What Im looking to report on is a specific Account field, PlanPaid field, and date field. Easy. I have created a parameter that gives me the date range option (@startDate, @enddate), as well as a parameter that gives me a client drop down menu (@account with available values pointed to the account field for the dataset below) to select the appropriate client. All working

However, when I choose a date range and client, I’m returned the “total YTD/lifetime PlanPaid amount for the Account” not the PlanPaid amount just for the specific date range I selected.
I have two datasets, one dataset has the account field, using this query:

SELECT Distinct
ORDER BY ClaimDetail.Account

The other dataset has the amount and account fields…this particular dataset has a WHERE statement:

WHERE (ClaimDetail.Account = @Account)

Does anything stick out that I should change or try? What am I missing?

  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.04 seconds. Powered By: Snitz Forums 2000