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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors