2 part question..
Part 1:
so these WHERE clauses give me correct data:
WHERE { [Time].[Month].&[2011-06-01T00:00:00] }
OR
WHERE { StrToMember("[Time].[Month].&[2011-06-01T00:00:00]") }
but this returns nulls:
WHERE { StrToMember("[Time].[Month].&[" + Format(Now(), "yyyy-mm-") + "01T00:00:00]") }
i also tried it with yyyymm format. i am trying to use current month.. etc..
Part 2 (more important):
how can i verify what the format function returns? How can i do this in MDX query analyzer:
SELECT
Format(Now(), "yyyymm")
I just need to execute the function w/out selecting from a store.. is there a way to test these functions?
UPDATE
figured out Part 1
StrToMember("[Time].[Month].&[" + Format(Now(), "yyyy-MM") + "-01T00:00:00]")
it was MM vs mm.. this would be easy to catch if i was able to test what the output of that function is..
Using a calculated measure: