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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Yonatan1984
Helper I
Helper I

Lookup doesn't show data in some rows

Hello everyone.

I've a model that shows the tailor made products that I need to manufacture for the costumer.

For this I've 2 tables, WORK_ORDR_TRNS (aka WOT) and LGSTC_TRNS_TIME (aka LTT).

The fields in the table WOT that contain the order number calls:

1. CUST_ORDR_NBR (format as WHOLE NUMBER - GENERAL)

2. CUST_ORDR_LINE_NBR (format as WHOLE NUMBER - GENERAL)

The fields in the table LTT that contain the order number calls:

1. DOC_NBR (format as WHOLE NUMBER - GENERAL)

2. LINE_NBR (format as WHOLE NUMBER - GENERAL)

The field that I want to show in the Table WOT call CRE_DATIME from LTT.

The formula that I used is LOOKUPVALUE but there is a problem in some rows that the data showes in WOT as blank despite there's a data in LTT for the order an line.

There's a screenshot from WOT in row without data:

Yonatan1984_0-1642505184054.png

There's a screenshot from LTT in the same order:

Yonatan1984_1-1642505317149.png

 

There's a screenshot from WOT in row with data:

Yonatan1984_2-1642505436947.png

This is the formula:

TIME_ORDER = LOOKUPVALUE(LGSTC_TRNS_TIME[CRE_DATIME],LGSTC_TRNS_TIME[DOC_NBR],[CUST_ORDR_NBR],LGSTC_TRNS_TIME[LINE_NBR],[CUST_ORDR_LINE_NBR])

 

7 REPLIES 7
HotChilli
Super User
Super User

"I share all the the sample." - we don't want to see a picture.  We can help you if you post the actual data.

Please share a small pbix which illustrates the problem

I found the solution!

There was a table that I didn't needed, when I delete it from the model, all the data shows.

Probebly the reletionship was'nt right.

v-yanjiang-msft
Community Support
Community Support

Hi @Yonatan1984 ,

By my test, haven't reproduced your problem, could you please share the error sample? It helps resolve issue faster.

Best Regards,
Community Support Team _ kalyj

Hi @v-yanjiang-msft 

I share all the the sample.

I don't get any error, only blank data.

Hi,

One useful test that I do in situations like this is to apply "clean" and "trim" steps in powerquery. It is possible there is a space or somethin like that messing with the lookup. Another thing to look out for would be the date format. Date columns data tyoes are typically the most vunerable.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @ValtteriN 

The clean and trim dose'nt work.

Also the date format is equel in all table.

HotChilli
Super User
Super User

I suggest fully-qualifying the table names in the formula to start with i.e. put the table names in where thay are missing.

If that doesn't work, take a specific example and hardcode the values in the formula to test whether they can be found

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.