I've been wrestling with MDX in PerformancePoint today and was attempting to do something that I thought would be pretty simple. Work out what is the current quarter. No amount of googling turned anything up either.
It took me a while to figure out so I thought I'd post it up here in case I need it again or if anyone else ever needs it.
member
[Time].[Calendar YQM View].[Current Quarter] as 'StrToMember("[Time].[Calendar YQM View].[Month].[" + Format(Now(), "MMM") + " Year " + Format(Now(), "yyyy") + "].Parent")'
There doesn't seem to be a format string that, when used with VBA's Format() function, will return the current quarter which seems, to me, to be a glaring omission. Hence I had to get the current month and ask for its parent.
Obviously you'll need to mess about with some string manipulation to suit whatever format you are using. In my case the label for the current month looks like this: "May Year 2008" which (I think) is PerformancePoint's doing. It seems utterly ridiculous to me. Surely "May 08", "May 2008" or even "200805" would be better? Still, who am I to complain.
Hope this helps. if anyone knows a better way feel free to let me know.
-Jamie