Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

dynamically using columns based upon a parameter

$
0
0
HiI have a table with date flags inSuch as CurrentMonth, CurrentYear, PreviousMonth etc.This has a date as the SK and flags 1 or 0 dependant upon whether the date is in the current month etc.In SSRS, I have created a fairly simple graph, that looks at the number of orders processed over timeMonth/Year as x axis, Count as y axisThe order table joins to CalendarDate based upon the order dateRather that ask the user to input a start and date, I'd prefer to use my date flagsSo, the user is asked for 3, 6, 12 or 24 months and it filters and presents accordinglyI can achieve this using separate graphs with filters e.g. CalendarDate.CurrentYear = 1Is it possible to prompt and filter using one single data source and one single filter?I've played around with iif and switch but can't seem to get time frame on the graph to changeThanksDamian.

Viewing all articles
Browse latest Browse all 2791

Trending Articles