on 08-24-2011 3:35 AM
Hi guys,
Now I want to calculate the summation of key figure KF1 during current month according to the input calenday.
For example, when inputing 20/01/2011, i want to get the summation of KF1 from 01/01/2011 to 31/01/2011.
If don't make enhancement for variable, How can i get the correctly result?
Look forward to your reply!
thanks.
I guess you have 0CALMONTH in your infoprovider. Add it to the query.
Remove the global variable on calendar day. Create a selection in the columns and add calendar day and the input variable. User enters date to this variable. Create selections for the other key figures and add 0CALMONTH. Create a variable (single value, replacement path) on calmonth. In the replacemnet path tab, give replace by variable and give the name of calendar day variable. in the offset section below, put 0 for offset start and length as 6. This variable returns the calendar month of the date that is input by the user. If he enters 15/06/2011 he would get summation for June.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Yes,As your advise said that if we make an enhancement for Variable in CMOD, it can be done.
I just wonder whether there is a solution without do any enhancement in CMOD!
Thanks your reponse!
Best Regards,
zhenfu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dragon Cao,
No need to create any customer exit variable for this ..
You have standard variable CMONTH this displays current month summation. Just restrict your Key figure with this variable.
And in properities of Key figure goto Calculations> Local Calculations> select Summation.
If you want to assign some calday at run time sure you need to create customer exit variable using Step_2 value in enhancements(CMOD).
Regards,
Rajeswari.
Edited by: mrajeswari on Aug 24, 2011 12:35 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeswari,
The standard variable CMONTH is only get the current month. And my requirement is how to get the summation for any month according to the input calenday. For example, current month is Aug, when query execting, user inputing calenday 15/06/2011, i want to get the summation of June.
Thanks.
Best Regards,
zhenfu.
HI,
Write a customer Exit variable to find the fist day of the month and last day of the month, Restrict your KF with variable value from and To Date.
-
Thanks
BVR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Based on the input date if you want to give the range as complete month then you will have to create customer exit variable. I don't think dynamic range specification using formula will be possible.
After creating the customer exit variable you can use it in RKF.
Regards,
Durgesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a Restricted Key figure (Restrict the KF1 using the Calday characteristic) and then go to the properties of the Restricted key figure>calculations>Local calculation-->Select Calculate result as: Total.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.