Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

MDX Date range filter query not working

$
0
0
Hello Friends,We have a Date dimension like the one in AdventureWorks sample cube in our Cube.But the MDX used to filter date isn't working and the same thing works for AdventureWorks cube. I just wanted to know what design changes need to be done in Date Dimension for it to work :[b][u]MDX Query : [/u][/b]SELECT FILTER([Dim Date].[Full Date].LEVELS(1).MEMBERS, ([Dim Date].[Full Date].CURRENTMEMBER.MEMBERVALUE >= CDATE("2/6/2000") AND [Dim Date].[Full Date].CURRENTMEMBER.MEMBERVALUE <= CDATE("12/12/2020"))) ON 0 FROM [Super Dw] if i remove the part, 'LEVELS(1)' from above query it works correctly.I can't change the query as it's being fired by a tool so i need to change the design for it to work :)Thanks,Amar

Viewing all articles
Browse latest Browse all 1341

Trending Articles