Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9316761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:42:15+00:00 2026-06-19T02:42:15+00:00

I have a report that filters an sql query with a date. I want

  • 0

I have a report that filters an sql query with a date. I want to have this report in two versions. One that goes on in a schedule (it uses the actual month) and another one that prompts for the date to be filtered.

One is supposed to run every month by itself and the other one will be used in a few manual runs.

Can I do this without having more than one report?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:42:16+00:00Added an answer on June 19, 2026 at 2:42 am

    Create a prompt called pPeriodType with two possible values: ‘Select Date Range’ or ‘Current Month’

    Then in your report filter you do something like this:

      (
      ([YourDate] BETWEEN 
      ?pStartDate? AND ?pEndDate?) 
      AND ?pPeriodType? = 'Select Date Range'
      )
    OR
      (
      [YourDate] BETWEEN 
      <expression evaluating to start of month based on current date>
      AND 
      <expression evaluating to end of month based on current date>
      AND ?pPeriodType? = 'Current Month'
      )
    

    Now when you pick ‘Current Month’, it will show current month regardless of the dates you pick. When you pick ‘Select Date Range’ it will filter based on the selected dates. You just need to work out the expression for start and end dates depending on the current date. What database are you running this on?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a report that uses a Multi Value parameter. I have added this
I have a report that is returning a one data field to a tablix
I have a report that I created in SQL Server Reporting Services 2008. I
I have report that references a view in a SQL Server. The user can
I have a CSV report that has fields Date, User, and Bandwidth for 1000
Ok, so I want to have a report that does not require the end
I have a very simple SQL query that I made which retrieves some user
I have a report page that filters customers based on some criteria and displays
I have a report in Access that we want split and exported to .rtf
I am running SQL 2008, I have been tasked to create a report that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.