Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

How to filter MDX result set comparing another two dimension members?

$
0
0

Here is my MDX which I am trying: where I have to filter records on basis of client start date. So basically here is client start date[Client].[Client Start Date] in date format. And since I am passing client as parameter so there will be one client startdate (for one client) and I want records only for those months (([Month].[MonthNo].[MonthNo])

Instaed I am getting all the records. Please help.

SELECT
{[Measures].[count] }
ON COLUMNS, 
Filter({ ([Month].[MonthNo].[MonthNo] * [Month].[Calendar Quarter Num].[Calendar Quarter Num]) },
[Month].[MonthNO].Properties('Key')>=Format([Client].[Client Start Date].Currentmember.Properties('Key'),"yyyyMM"))
ON ROWS FROM (SELECT strtoset(@Client) 
ON COLUMNS FROM [mycube])

Viewing all articles
Browse latest Browse all 14337

Trending Articles