Forum Discussion

Cellblime's avatar
Cellblime
Frequent Visitor
1 year ago
Solved

Lookupvalue Returning an Error

I'm new to Power BI, but I believe I can describe this issue accurately.  I have a queried table, Letters, with a column, Letter Code.  I also have an imported Excel table, Letter Descriptions, with ...
  • Bibiano_Geraldo's avatar
    1 year ago

    Hi Cellblime ,
    It sounds like you’re on the right track with using LOOKUPVALUE, but the error you’re encountering typically means that there are multiple matching values in the Letter Descriptions table for a given Letter CodeDouble-check that the Letter Code column in the Letter Descriptions table truly has unique values.

     

    Use FIRSTNONBLANK BUT NOTE: This will only return the first non blank value found, ignoring all other's.

     

    Letter Description = 
    CALCULATE(
        FIRSTNONBLANK('Letter Descriptions'[Description], 1),
        FILTER('Letter Descriptions', 'Letter Descriptions'[Letter Code] = Letters[Letter Code])
    )

     

     
    I hope this help you, if so, please accept as solution and give a Kudo.

     

    Thank you.