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
Gillard_2
Frequent Visitor

Lookup Help

I have done many lookups however this one is not playing ball and i cant work out why 😞

 
 
 

Image1.pngImage2.png

Building Name = LOOKUPVALUE(BuildingCodes1[Building],BuildingCodes1[Building Code],Printer_Report_Push_Printers[LocationCode])

LocationCode = LEFT(Printer_Report_Push_Printers[Printer Queue],3)

 

Any ideas why this lookup is not bring anything back and everything is blank? Thanks

 

 

7 REPLIES 7
v-yuta-msft
Community Support
Community Support

@Gillard_2 ,

 

It means there's no matched result by LOOKUPVALUE() function, please check if there're any unprintable values in Building Code column.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

az38
Community Champion
Community Champion

Hi @Gillard_2 

why dont you use relationship LocationCode - Building Code (many-to-one)?

it would be looks more pretty 

 

do not hesitate to give a kudo to useful posts and mark solutions as solution
Linkedin


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Creating this relationship still has the same issue unfortuantely. It clearly isnt seeing them as matching despite the fact they clearly are. It wouldnt have anything to do with the fact the are Capitalised or only 3 letters long i presume

 If possible please share a sample pbix file after removing sensitive information.
Thanks

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Gillard_2 ,

 

maybe there are non-printable characters (like space) at the end of the [Building Code]?

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


I have checked and i dont believe this to be the case.

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Gillard_2 ,

did you solve your problem?

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


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.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.