on 11-23-2005 5:56 AM
Hi,
I need to perform some calculations on result of one CKF(reult is summation of all values).IS it possible?
regards
Hi Murali,
I reproduced the situation with getting price from the KF attribute of the char. Its an attribute with a currency. I succesfully created a CKF from formula variable, multiplied NODIM(NOERR(CKF)) by NODIM(NOERR(qnty)). %GT gaved me the result.
What is a possible difference between my situation and yours (it may give a clue):
- my KF attribute was not marked as Attribute only
- formula variable in the from-to-difference was set to TO
- my attribute was time-independent
- my char with KF attribute was not compounded
So, GT% should clearly work. But something is wrong with getting value of KF attribute.
You may investigate it further if you want to.
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can see this button at the bottom in the properties screen.
Now let's to experiment.
Put this new CKF into columns.
New formula. = NOERR(NODIM( (CKF)).
New formula. = NODIM(NOERR (CKF)).
New 2 formulas = %GT on the previous 2 formulas.
Let's see if we get rid of 0 or X.
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murali,
Along with files you sent to me everything looks reasonable. Though, I see minor discrepancies between a query definition and the result.
Its obvious that the main culprit is a Price. I assume that you followed the How to calculate with attributes? If so, have you created the Price as calculated KF (left side of the designer screen, under Key Figure node. Or you created it as a new formula in the columns structure? If the latter, try to create it as a CKF. Make sure that After aggregation setting is set (Enhance button).
Also, I see that in the query definition Qty Value (Stock Qty * Vpice) object has an icon without f letter. So, its not a formula. Is it a CKF? How do you calculate this value? Check carefully, it might refer to the wrong objects.
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Engune,
<i>Also, I see that in the query definition Qty Value (Stock Qty * Vpice) object has an icon without f letter. So, its not a formula. Is it a CKF? How do you calculate this value? Check carefully, it might refer to the wrong objects.</i>
Qty value is formula i.e. Qty*price.Since it has been hided we dont see 'f' letter on it.
thanks for u r time.will come back with other details.
regards
Hi Engune,
Now i am trying to create one more CKF as u said....Caluculated keyfigures-->rght clik->new CKF->rght click on formula variable(since price is an attribute of valuation)-->new formula var->select processing type as replace ment path-->selected char as valuation>replace variable with attribute value->select my attribute->next->finish...
now i can use this in my formula.but i dont see any enhance button as u said.
we are using 3.0B.
regards
Material valuations like #/#/0001108157A00 means that valuation has 2 compounding attribute, # means that the appropriate attribue is not assigned.
Questions:
1.Whats the type of Valuation (CHAR, NUMC?) And what is the length of its key?
2.Which attributes Valuation has. Which attributes are display and which navigation?
3.What are compounding attribute?
4.Price attribute what type, with currencies, units?
5.If you have price in the query how do yo determine it? Simply as attribute of Valuation? Or it is in the infoprovider?
6.Do you see prices and NOERR(price)?
7.How do you calculate total quantities? In the column? Or you have totals in the infoprovider?
8. Totals is that total amount of particular material number through its valuations? Or through all materials?
I didnt understan the structure of your query. It should look like this:
Material/valuation Price Quantity Value
Mat1 SumOfMat1Prices SumOfMat1Q-ty SumOfMat1Value
Valuation1 P1 Q1 V2
Valuation2 P2 Q2 V2
Valuation3 P3 Q3 V3
Mat2 SumOfMat2Prices SumOfMat2Q-ty SumOfMat2Value
Valuation1 P4 Q4 V4
Valuation2 P5 Q5 V5
9. Am I right about figures in Mat1 etc. rows?
10. What is the physical meaning of valuation?
11.Why do you multiply price by TOTAL quantity?
Take your time and please answer all questions.
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Engune,
here are the answers for u r Qs:
<i>1.Whats the type of Valuation (CHAR, NUMC?) And what is the length of its key?</i>
CHAR,18
<i>2.Which attributes Valuation has. Which attributes are display and which navigation?</i>
It has 21 attributes(both display and Nav).Price(valuation price) is display attribute.
<i>3.What are compounding attribute?</i>
Appreciation cycle(custome defined) and valuation type(0VAL_TYPE)
<i>4.Price attribute what type, with currencies, units?</i>
its display attribue(0PRICE_VAL).its Amount,CURR,unit curreny is 0CURRENCY. aggregation and excep agg is summation
<i>5.If you have price in the query how do yo determine it? Simply as attribute of Valuation? Or it is in the infoprovider?</i>
I have created a formula variable to make price available in calculations (i.e. to perform <u>Qty*Price</u>)
<i>6.Do you see prices and NOERR(price)?</i>
yes
<i>7.How do you calculate total quantities? In the column? Or you have totals in the infoprovider?</i>
Sum of two individual quantities.No i dont have total in infoprovider.
<i>8. Totals is that total amount of particular material number through its valuations? Or through all materials?</i>
u can see in the doc which was sent to u
<i>10. What is the physical meaning of valuation?</i>
i dont know exactly.as per requirement its not required in the query.since i am using price formula variable,i have taken material valuation on the rows.
<i>11.Why do you multiply price by TOTAL quantity?</i>
it gives Qty value (Qty*Price).
I need to perform some calcutions on total Qty value.so i m taking SUMGT(Qty value).and it returns x.if i take SUMGT(Qty) it works fine and SUMGT(Price) returns X.
regards
Material valuations like #/#/0001108157A00 means that valuation has 2 compounding attribute, # means that the appropriate attribue is not assigned.
Questions:
1.Whats the type of Valuation (CHAR, NUMC?) And what is the length of its key?
2.Which attributes Valuation has. Which attributes are display and which navigation?
3.What are compounding attribute?
4.Price attribute what type, with currencies, units?
5.If you have price in the query how do yo determine it? Simply as attribute of Valuation? Or it is in the infoprovider?
6.Do you see prices and NOERR(price)?
7.How do you calculate total quantities? In the column? Or you have totals in the infoprovider?
8. Totals is that total amount of particular material number through its valuations? Or through all materials?
I didnt understan the structure of your query. It should look like this:
Material/valuation Price Quantity Value
Mat1 SumOfMat1Prices SumOfMat1Q-ty SumOfMat1Value
Valuation1 P1 Q1 V2
Valuation2 P2 Q2 V2
Valuation3 P3 Q3 V3
Mat2 SumOfMat2Prices SumOfMat2Q-ty SumOfMat2Value
Valuation1 P4 Q4 V4
Valuation2 P5 Q5 V5
9. Am I right about figures in Mat1 etc. rows?
10. What is the physical meaning of valuation?
11.Why do you multiply price by TOTAL quantity?
Take your time and please answer all questions.
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unhide hidden columns and tell us what you see there?
Valuation - what's its tech name?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would be vey useful if you provide in details the foll. Info:
1. Query design: what do you have in rows and columns, any variables or filters, restrictions on chars, restrictions on selections in columns (including formulas).
2. What do you see in result (describe each column, including any prefixes or suffixes like designation of currencies or units, or ERROR).
Is it proper to sum up amounts with different currencies?
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Engune
1.I have material and material valuation in rows. there are no filters,restrictions on any object.only one formula variable i.e. valuation price which is an attribute of material valuation(thats y material valuation is considered in rows).
in rows i have a KF structure with two quantities(basic KFS in PC..hidden),sum of qunatities i.e. total quantity(hidden),qty value (i.e. Qty*price) and NOERR price(Hidden),and %GT of qty value.
i ahve used NODIM for quanties and NODIM and NOERR for price as u said.
2.I see material number; material valuation(ex:#/#/0001108157A00, 780/#/0001108157A00, #/#/0001108157R00, 780/#/0001108157R00,...etc),i dont know y these '#' are appearing;
Qty value (without any dimensons since i used NODIM)and %GT of value(Formula)as X.
regards
Do the following.
You have your KF (Value?).
Create a new formula as NODIM(KF).
Create another formula as %GT <previous formula>.
Create a condition with Bottom% and/or Top% on the last formula. You can hide fields you don't need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have exception aggregations for Quantity and/or Price (RSA1, infoobject maintenance)?
Have you set 'Calculate Individual rows As'... or 'Calculate result As...' Quantity and/or Price (BEx, chars properties)?
Also try to modify CKF Value as NODIM( NODIM (Price) * Quantity )
Message was edited by: Eugene Khusainov
Yes Engune,
Exeception aggregation for Quantity is 'last value' and for price is 'summation'.price is formula variable in Bex.
i have set calculate result as "summation" fro all CKFS.witht this also getting error.
<i>Also try to modify CKF Value as NODIM( NODIM (Price) * Quantity )</i>
i have already tried with this option.
regards
Message was edited by: cmd
Message was edited by: cmd
Hi,
If in the rows you show somewhat aggregated data, for example, by material group (not individual materials) and in the group at least one material with erroneous price contributes, NOERR for this whole group will return 0!
Try to build the query where you show all individual materials!
Best regards,
Eugene
Hi,
Using condition(s) with Top% you can show records which cumulated amount >= top% of the total result (descending order).
Using condition(s) with Bottom% you can show records which cumulated amount >= Bottom % of the total result (ascending order).
Just remember that several rows in one condition will be joined with logical OR. Several conditions will be joined with logical AND.
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you elaboarte pls..
Ashish..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have a few function Like Percentage share of result,
Percentage share of query result etc..
Basically these functions are under the percentage functions tab in the formula builder..
The difference is that they calculate the percentage for results at different levels..
Hope this helps
Ashish..
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.