Skip to Content
author's profile photo Former Member
Former Member

MDX - Select a period

Hello,

do you know how can I filter/extract vendor of a period (start, end) in MDX?

For example,

Start = today - 365

End = today

and I want to write a query like this:

select 0vendor

from cube

where

0calmonth between start and end

I have need a function for today also.

Thanks in advance,

Antonio

Edited by: Antonio Sgro on Jul 29, 2009 3:47 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 07:57 AM

    Hi Antonio,

    to get the function for today you could for example add your statement to a table or variable and include the current date.

    For example:

    lv_select1 contains the first part of your statement and

    lv_statement should be the complete statement.

    concatenate lv_select1 'where (0calday) .(' sy-datum ')' into lv_statement.

    Hope this helps!

    Markus

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.