Forum Discussion

lcasey's avatar
lcasey
Post Prodigy
9 years ago

How to Lookup a Value in Another Table

Hello,

 

I am trying to lookup the country in BSA00RMMC and return the Balance USD.  My Existing table I am creating the Measure in is GL001111.

How can I perform this lookup? The below code does nothing

 

Balance =
VAR RMMCBALANCE =
    MIN ( 'BSA00-RMMC'[Balance USD] )
RETURN
    IF (
        HASONEVALUE ( 'BSA00-RMMC'[COUNTRY] ),
        LOOKUPVALUE (
            'BSA00-RMMC'[Balance USD],
            'BSA00-RMMC'[COUNTRY], VALUES ( 'BSA00-RMMC'[COUNTRY] ),
            'BSA00-RMMC'[Balance USD], RMMCBALANCE
        )
    )

7 Replies