Forum Discussion

gsed99's avatar
gsed99
Icon for Helper III rankHelper III
2 years ago

Help with lookup from SELECTEDVALUE

Hello,
In a calculated column, I want to return a single value from the same table based on the SELECTEDVALUE. Meaning I have a slicer and choose Account A12345 and I want to return the country for that account at the row level to compare with other accounts.

I am having a problem getting the calculated column to filter and it returns the MAX country of the whole table.

 

I am having problems using the slicer and not having it filter the whole table for just the one chosen Account ID, I just want it to update the value so I can use it for the lookup. 

 

Please help! Thanks!

 

I am trying the below but not getting it to work

 

Level 1 Value C =
    CALCULATE (
        MAX ( 'Account Details'[Shipping Country] ),
        FILTER ( 'Account Details', 'Account Details'[Account Number] = SELECTEDVALUE('Account Details'[Account Number] )
    ))
 
I am also trying
 
TEST = LOOKUPVALUE('Account Details'[Account Name],'Account Details'[Account Number],SELECTEDVALUE('Account Details'[Account Number]))
 

7 Replies