August 21, 2017 at 8:48 am
How to use MDX parameter for Date in WHERE clause.
Here is my WHERE clause in MDX query, I would like to select Date parameter as a parameter and pass it to MDX before report get executed.
[Time].[Date].[Day].&[2017-08-18T00:00:00]
August 22, 2017 at 11:54 am
which also links to here: http://prologika.com/how-to-test-ssrs-mdx-queries-in-sql-server-management-studio/
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
August 22, 2017 at 1:33 pm
Hi Sgmunson,
Thank you for your reply, However I am looking to use parameter in SSRS.
August 24, 2017 at 6:55 pm
Try adding the where statement like below.
SELECT NON EMPTY { [Measures].[Measure1] } ON COLUMNS
FROM [Cube]
where (strtomember(@Parameter))
Make sure you set up the Parameter properly for the query - you need to choose the correct dimension and hierarchy to make it work.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply