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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
1984
Helper I
Helper I

Lookup value

Hi 

 

I'm hoping someone can support me. I want to create what I thought would be a simple lookup dax

 

The result column is type text with a mixture of text and numbers,

the search column is type text with a mixture of text and numbers,

and the final search is type text with a mixture of text and numbers. However, it creates an error of type text to type integer the search value on both sides will have something like 11C800707.

 

Please let me know if you require any further details/table details 

Thanks in advance

1 ACCEPTED SOLUTION

Did you review your data types?

 

Where is the sample data?

View solution in original post

5 REPLIES 5
1984
Helper I
Helper I

1984_0-1734363833732.pngTable 2

1984_2-1734363871097.pngTable1

This is how the tables are in the model 

@1984 - I suggest you check your data types. your DAX works perfectly for me:

 

mark_endicott_0-1734364370422.png

 

mark_endicott
Super User
Super User

@1984 - Start off by reviewing your data types in Power Query, and then on the front end in the Model or Table views. It sounds like something is wrong here.

 

If all good, sample data and a copy of the DAX you are using will help!

So the Dax I'm using is 

Lookup COLUMN =

LOOKUPVALUE('TABLE 1'[ID],

'TABLE 1'[Number],

'TABLE 2'[New MSN])

Did you review your data types?

 

Where is the sample data?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.