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

Calculated Key Figure complex

Hi there all !

I have the following situation.

1) I have 3 standard Key Figures named Cost, Value , Quantity

2) I have made a Calculated Key figure Avg Price = Value / Quantity.

Question

I want to create a second Calculated Key Figure Loss = Cost - Avg Price.

Can this be done and how because i get error, i suppose the error is because i can not use a complex Calculated Key Figure .

Thank you All in advance !!!

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 01:24 PM

    Hi,

    As It was mentioned it is 100% possible in Query designer . But take NODIM() finction wherever it is required. for ex:

    Loss = Cost - (Value / NODIM(Quantity))

    or LOSS = NODIM(Cost) - NODIM(Value/Quantity).

    With rgds,

    Anil Kumar Sharma .P

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 12, 2007 at 01:19 PM

    Hi Panos,

    You should be able to use a CKF within another CKF. But you can try creating the CKF for Loss as = Cost - (Value/Quantity).

    Hope this helps...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 12, 2007 at 01:24 PM

    Hi ,

    What are the units for Cost? If it same as average price then you should be able to subtract one from the other. Otherwise use NODIM to supress the units.

    .

    Jaya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2007 at 09:35 AM

    Thank you all for your quick response !!

    I tried all you suggested and solution given by Anil Kumar Sharma worked. The Nodim had to be placed before Quantity.

    Bhanu Gupta's solution was a good idea but it did not work.

    Jaya Mogali was right about the problem also.

    So points for everyone.

    Thank you very much!!!

    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.