Range Lookup

Post Reply
Charles Ang
Posts: 24
Joined: Thu Aug 29, 2013 7:05 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Range Lookup

Post by Charles Ang »

Hello, I am trying to lookup a range of criteria from a lookup cube to another cube.

I have build 2 cubes:
1.socso
2.overhead

I need to lookup the salary I key in the overhead cube and get a contribution.

Overhead input view:
Capture.PNG
Capture.PNG (8.25 KiB) Viewed 2071 times
socso:
Capture2.PNG
Capture2.PNG (5.71 KiB) Viewed 2071 times

I used the following logic formula.
['Socso Employee'] =N:if( (['Salary']<=DB('socso','1','Max')) ,DB('socso','Employee Contribution'),CONTINUE);

However when i key in 20, it return 0.
wondering any part that i missed?

Thanks,
Wim Gielis
MVP
Posts: 3241
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Range Lookup

Post by Wim Gielis »

You miss the element '1' in your True part:

DB('socso','Employee Contribution')

Every cube has at least 2 dimensions.

By the way, Trace calculation on a cell is a hady feature... :-)
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Post Reply