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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.