Skip to Content

Last 5 months in CrossTab Lumira Designer

Hi people,

My new challenge is to just show the last 5 months of profits in a CrossTab.

Sound easy but:

2018 - 1

2017 - 12

2017 - 11 ...

Is there some way to implement this in a CrossTab?

Thank you in advance!!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Feb 06, 2018 at 12:54 PM

    Hi, Andres

    In the application launch event, you can get the current month:

    month_now= Convert.floatToString(Date.createNow().getUTCMonth(),"#");

    Then you can write the algorithm for determining the last 5 months in Global Script.
    For example, if month_nov = 05, then the range = [01,02,03,04,05]
    Limit this range to the DS data source for Crosstab (DS_1.setFilter(name_dimension, array))



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 02, 2018 at 10:30 AM

    Hello Andres,

    The "easy" answer is to create an offset variable in the BEx Query (assuming BEx is your datasource) that will automatically select the past 5 months and then send that to Lumira Designer. Performance in Lumira Designer will be faster too.

    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.