简体   繁体   中英

MDX Filter a dimention with another dimension

To all excuse my ignorance, but im new to MDX below is the query im trying to run

 SELECT 
 NON EMPTY { [Measures].[Task Burn Down] } ON COLUMNS, 
 NON EMPTY { ([Calendar].[Date].[Date].ALLMEMBERS * [Priority].[Priority Code].[Priority Code].ALLMEMBERS ) } 
 DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS 
FROM ( 
 SELECT 
  ( { Filter([Calendar].[Date].AllMembers, [Calendar].[Date].CurrentMember <= [Sprint].[Sprint].CurrentMember.Properties("Stop Date")) } ) ON COLUMNS 
 FROM ( 
  SELECT 
   ( { [Sprint].[Sprint].AllMembers } ) ON COLUMNS 
  FROM ( 
   SELECT 
    ( { [Team].[Team].AllMembers } ) ON COLUMNS 
   FROM [Backlog2]
  )
 )
) 
WHERE ( [Team].[Team].&[27], [Sprint].[Sprint].&[9] ) 
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

When I run this I expect to get 1 value for [Measures].[Task Burn Down] for each day of the month. But I only want one month. My Sprint dimension has a stop date and I do not want to return any values after the stop date. What am I doing wrong?

Guys, It seems my only problem was I forgot to process the dimentions of the cube. Oops, sometimes these things happen. I have the query above working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM