Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
VenkatTav
Frequent Visitor

Lookup function error

Hi Team,

 

I have a requirement to show all the description names based on code, but am getting the below error.

Error message:

VenkatTav_0-1676952944100.png

 

 

DescriptionCode
Tx207
DC207
NY207
LS207
2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please try something like below.

If the requirement is to show all the description names, CONCATENATEX DAX function might help.

 

LOSS_MIT_STS_ShowAll =
CONCATENATEX (
    FILTER (
        SERVICE_REFERENCE_DETAIL_VW,
        SERVICE_REFERENCE_DETAIL_VW[CODE] = "207"
    ),
    SERVICE_REFERENCE_DETAIL_VW[CODE_DESCRIPTION],
    ", "
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Apologies , Let me be clear then , I have a table (EX :A) which stores information of the codes and respective descriptions example i pasted table above. and I also have another table (EX:B) and i need to bring only descriptions in to table B , as my model do not have join between A&B tables i am creating a new column in table B and using above calc lookup function to get description using lookup code.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.