I have a dynamic query i use with reporting services to select different time
values based on a drop down.
I can select the current month, the last 2 months, the current quarter, or
the last 2 quarters.
the "time" sections of my queries are as follows
(time structure Year->quarter->month)
current month: LastPeriods(1,[FiscalDate].LastChild.LastChild.LastChild)
last two months: LastPeriods(2,[FiscalDate].LastChild.LastChild.LastChild)
current quarter: LastPeriods(1,[FiscalDate].LastChild.LastChild)
last 2 quarters: LastPeriods(2,[FiscalDate].LastChild.LastChild)
everything works fine.
I need to change to current month, previous month, current quarter, previous
quarter
I chnaged my last 2 months and last 2 quarters queries to this: