Mdx help with 2 date filters

  • Mdx newbie here. I have the following Measures and Dimensions
    Measure: Activites.Activitycount
    Dimension1 : StartDate.Year-qtr-mon-date hierarchy
    Dimension2: CloseDate.Year-qtr-mon-date hierarchy

    I am trying to get a cumulative count on a measure across Two Time dimensions. 

    This is the data that I have from the cube. Activity Count is from Measure Activity

    and Row lables from Dimension start date

    Row LabelsActivity count
    201110
    201220
    201330
    201440
    201550

    I need a cumulative count measures that should have the following data and also a filter on 2 time dimensions
    For example Opening Count for 2012 should bring all the ones that have a start date before 2012(start date of 2011) and the ones that were closed after 2012. 
    At month level: For example: Jan2016 month should have all the activities that were created prior to Jan2016(uptill Dec 2015) and the ones that were closed after Jan2016(Feb 2016 onwards)

    Row LabelsActivity countOpening Count
    20111010
    20122030
    20133060
    201440100
    201550150

    How can I write an mdx query that counts cumilatively at all levels & has filter across 2 time dimensions

    Year should sum all the previous years, 

    Month should sum all the previous months

    Dates should sum all the previous dates.

  • bump for my query

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply