Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 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.

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded