problem with measaures

  • i have a measures :

    sum(nonempty([Time].[Year - Trimester - Month - Date].currentmember.lastchild,[Measures].[Cantidad]),

    [Measures].[stock])

    and [Measures].[stock] is :

    Sum(

    PeriodsToDate([Time].[Year - Trimester - Month - Date].[(All)]

    ,[Time].[Year - Trimester - Month - Date].currentmember),

    [Measures].[Cantidad]

    )

    my problem is when i have a time filter by date (day) in browser and in columns is the Months , the stock is the last stock nonempty of month and i want if i have a filter 15 september that is the stock of 15 septiembre and not 31 septiembre.

    thanks

  • Try this function in the MDX using WITH Member clause,

    Sum({ClosingPeriod([Time].[Year - Trimester - Month - Date],[Time].[All Time]).lag(15)},([Measures].CurrentMember))

    where 15=filtervalue ie., before 15 days for example.

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

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