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

Bex question

Hello

Let's suppose I have a query which output sold_to, ship_to and yesterday's invoiced amount.

I would like all records for which sold_to = ship_to (or the opposite).

Does someone know if this can be done in the Bex?

Thanks

Ioan

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2004 at 10:41 PM

    Hi Ioan,

    You can do one thing.You can create a formula like this.

    yesterday's invoice amount(this is the description of the formula)=

    '(sold_to=ship_to)*yesterday's invoice amount(this is a key figure)'.

    This is a boolean expression.So the OLAP processor checks for the condition soldto = ship_to.If they are equal it returns a 1 and ifnot returns a '0'.So ultimately you will have yesterday's invoice amount as some numbers and some zeros.You can suppress the zeros if you want.Hope this helps.

    Ravi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2004 at 01:45 PM

    Excellent, I will try that. I also opened a ticket to OSS, I'll come back to you if I get something interesting

    Thanks for your help. Ioan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2004 at 05:47 PM

    Ravi, it doesn't work as in the formula box, only key figures are available --> sold_to and ship_to are not there. Am I missing something? (we use 30B, Bex patch12)

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ioan,

      Please create two new selections under key figures structure in the columns part of the query designer.Right click on the key figures pull sold-to to the right and give a name,next do the same for ship-to also.Now use again right click on the key figures create a formula.You should be able to see the two new selections you created before.Then use the formula as i mentioned before.It should work.Thanks.

      Ravi.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2004 at 10:57 PM

    Ravi,

    Excellent try, but I'm afraid it's not going to work: I didn't succeed creating a selection without including a key figure. Even worse, we have some customers which have characters in their key ...

    I also tried on my side with a replacement path: it works properly except again for customers which have characters in their key!

    If you have any other idea, please let me know

    Thank you very much, you have been very helpful

    Ioan

    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.