Results 1 to 6 of 6

Thread: Problem Using Calendar Periods as parameter comparison

Threaded View

  1. #1
    Join Date
    Jan 2009
    Posts
    5

    Problem Using Calendar Periods as parameter comparison

    Don’t know if this is possible or if there is a better way to do this, but any help would be appreciated.

    I have a where clause that is used to select sales information for a period based on a parameter that’s passed from a drop down list. The parameter being passed("& parameters!GetPeriod.Value &) represents any level of the calendar hierarchy selected from a drop down list. It could be year, qtr, month, week, or day. The problem is, when you compare the parameter to the calendar, you have to specify the level of the hierarchy the comparison is for([Fiscal Month Name]). Is there any other way to handle this? If not, it means I have to write a separate report for each level of the hierarchy.

    WHERE {ClosingPeriod([Calendar].[Fiscal Calendar].[Fiscal Month Name], [Calendar].[Fiscal Calendar].["& parameters!GetPeriod.Value &"])}
    Last edited by mknsawdust; 01-20-2009 at 03:58 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •