Skip to Content

Variables for 0calmotn

Hi all,

I gave a query with variable (VAR1) based on 0calmotn.

I have created two restricted key figures (KeyN and key N-1).

KeyN based on VAR1 and Key N-1 based on VAR2.

VAR2 is a exit variable to get the period of the last year.

When i lauch my query for example with variable1 = 02.2016

I get this result :

02.2015 02.2016

KEY N KEY N-1 KEY N KEY N-1 258 789 233 2225 785 458

we need to not display the 0calmonth for 02.2015 to get this result :


KEY N KEY N-1 789 258


233 458 785

Can you help me please?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 26, 2016 at 10:28 AM


    i think what you are seeing in the 1st screen shot is normal functionality. As you are trying to see the data of previous year along with current year, by defalut calmonth shows two diffenret periods current and previous years.

    Also RKF2(key N-1) is intended to show the previous year data, if you try to dispaly only current calmonth then this is contracdictory of what the data is showing.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2016 at 01:10 PM


    looks like you have cal month in columns , please take out that .

    also, your requirement seems to be like current month (based on user input) and Last year same month , though you have mentioned as period of last year, from the image it seems like month

    simply restrict KF N with calmonth var1 & KF N-1 with calmonth var1 (here offset var1 as -12) this will bring last year same month.

    no need to go for customer exit (var2) .. you can remove this step.

    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.