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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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

Click here to schedule a short Teams meeting to discuss your question.

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.