Skip to Content
1
Feb 16 at 04:30 PM

Lookup in a Calculation Function

319 Views Last edit Feb 16 at 04:37 PM 3 rev

Hello,

i saw in a sample Content that it is possible to combine two Tables with a Lookup and make Calculations, so you dont have to use a Join. So i tried to combine two Tables, Table 1 and Table 2, please see below:

image.png

image.png

I used Table 1 as Input in my Calculation Function:

image.png

As lookup-Input i used Table 2:

image.png

Then in the Formula of the Field AMOUNT1 I typed in the following Logic: The Lookup Field is GL_ACCOUNT

image.png

I also typed in the following different Logics, which was also possible to activate:

image.png

image.png

So it should add everywhere where GL_ACCOUNT matches (ACC1 and ACC2) a 10 if its ACC1 and a 5 if its ACC2.

Its possible to activate this but when i see the results:

image.png

AMOUNT1 should be filled with 5+10; 4+10;3+10 for GL_ACCOUNT=ACC1 and 4+5;10+5 for GL_ACCOUNT=ACC2 right ?

No Addition takes place obviously. Can s.o tell me the correct Code please ?

Best Regards, Philipp

Attachments

image.png (18.3 kB)
image.png (14.8 kB)
image.png (36.4 kB)
image.png (39.2 kB)
image.png (8.1 kB)
image.png (7.9 kB)
image.png (20.5 kB)
image.png (7.1 kB)
image.png (7.1 kB)