Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Filtering by "=" in Matrix not working for date filter using an MDX Data source

$
0
0

I have a reporting I am building that uses an MDX cube as its data source, and I am having an issue where I want to filter one aTablix = date parameter. The data source itself has an inclusive date range parameter, however part of the report needs to show only the data from the "To" date.  Because there is a requirement for the Start Date/End Date parameters to be a calendar control, in the data source parameter itself I am using this expression for FromDaterKey:

="[Date].[DateKey].&[" & Format(CDate(Parameters!StartDate.Value),"yyyy-MM-dd") + "T00:00:00]"

This works find for the parameters and the whole of the dataset is shown correctly by the parameters.  However when I try to apply it as a filter to the tablix, not results are returned.

When I Use >= in my filter, The data is shown, inclusive of the date key I would expect from just using a "=" filter.  To ensure the formula is matching the MDX needed for the date key, in my tablix I had one column as DateKey.Unique Name, and another column as the parsed Start Date, and I see no difference in the results:


Any Ideas?  I am using SQL Server 2014, And the Date Key field in question is DateTime in the cube. 



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>