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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
OPS-MLTSD
Post Patron
Post Patron

LOOKVALUE does not return all fields

I have a table called ‘Employer-use this’, where I am trying use LOOKUPVALUE to return names of Region (Central East, Eastern etc), which is named as ‘Column’ right now (the last column on the picture). However, the problem is not all fields are populated, I highlighted in yellow to show the blanks that are not being shown. I checked my reference excel sheet (which is Sheet 2) and it shows the name of the region for that postal code, so I am not sure why these fields are not being populated. You can see that I used the formula:

Column = LOOKUPVALUE(Sheet2[Region], Sheet2[Postal Code], ‘Employer-use this’[Postal Code])

I also trie this formula:

Column = CALCULATE (
FIRSTNONBLANK ( Sheet2[Region], 1 ),
FILTER (
'Sheet2',
'Sheet2'[Postal Code] = 'Employers-use this'[Postal Code]
&& 'Sheet2'[RPS Registration Number] = 'Employers-use this'[RPS Registration Number]
)
)
I still get about 1624 blanks out of about 4500 entries 

I used the same Sheet2 table to create the Risk level Column you see on the picture below and Risk level populated all fields properly, so not sure why it is not work for the column with region names.

If someone could please help me solve this issue, I would really appreciate it!

 

 

Capture-3.JPG

 
 
1 REPLY 1
harshnathani
Community Champion
Community Champion

Hi @OPS-MLTSD ,

 

 

Try to check the if these values come up using Power Query.

 

A good way to trouble shoot is using Merge queries option in Power Query 

 

Also have a look at the blogs below. 

 

 

https://exceloffthegrid.com/power-query-lookup-values-using-merge/

https://eriksvensen.wordpress.com/2019/02/28/powerquery-replicate-doing-an-excel-vlookup-in-m/

 

 

Regards,

Harsh Nathani

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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