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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

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.