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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CJC_DB
Frequent Visitor

LOOKUPVALUE not reporting all availabe data

Dear all,

 

i have 2 tables whre i need to combine the data set. I tried to achive this by RELATED or LOOKUPVALUE but both approaches report only a part of the available data.

 

CJC_DB_1-1669294833978.png

picture I: report table which contains the LOOKUPVALUE fxt

 

Spoiler
SN_OEM = LOOKUPVALUE(BOM[Merged], BOM[IAL Part Number], ANF[P/N])
the second table is containing the necessary data. As you may see the secontable is containig the required information but it is not reporting it back. Both tables are sorted by p/n
 
CJC_DB_2-1669295029426.png

picture2: table for lookupvalues 

 

Does somebody have an i dear what i need to change in order to reiceive the complete data set.

 

Thank you and best regards!

3 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@CJC_DB Try this:

SN_OEM = MAXX(FILTER('BOM',[IAL Part Number] = 'ANF'[P/N]),[Merged])

If that doesn't work then try doing a Trim operation in Power Query for P/N and IAL Part Number columns.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

SamVS
New Member

I wonder if there's perhaps some white space (like a space at the end) in either BOM[IAL Part Number] or ANF[P/N].
   

Just curious if you add a column with a formula like this, what happens?

LookupValueTest = CALCULATE(MAX(BOM[Merged]), FILTER(ALL(BOM),BOM[IAL Part Number] = ANF[P/N]))

View solution in original post

NikhilChenna
Continued Contributor
Continued Contributor

Hi @CJC_DB , I think i found a solution. 

 

1. Go to Power Query Editor and select this [P/N] column in the first table and right click and go to transform  - > text transforms -> trim as show in the below table. And do the same for the second table [P/N] column.

2. Click close and apply.

NikhilChenna_0-1669299468006.png

3. Then try the lookup again it should work. I tried my self with one example and it works.

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

 

 

 

 

View solution in original post

4 REPLIES 4
CJC_DB
Frequent Visitor

@Greg_Deckler @SamVS @NikhilChenna , thank you very much for your support! i followed first the solution proposed by @Greg_Deckler . Afterwards all values have been displayed. 

 

Thanks alot!

NikhilChenna
Continued Contributor
Continued Contributor

Hi @CJC_DB , I think i found a solution. 

 

1. Go to Power Query Editor and select this [P/N] column in the first table and right click and go to transform  - > text transforms -> trim as show in the below table. And do the same for the second table [P/N] column.

2. Click close and apply.

NikhilChenna_0-1669299468006.png

3. Then try the lookup again it should work. I tried my self with one example and it works.

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

 

 

 

 

SamVS
New Member

I wonder if there's perhaps some white space (like a space at the end) in either BOM[IAL Part Number] or ANF[P/N].
   

Just curious if you add a column with a formula like this, what happens?

LookupValueTest = CALCULATE(MAX(BOM[Merged]), FILTER(ALL(BOM),BOM[IAL Part Number] = ANF[P/N]))

Greg_Deckler
Super User
Super User

@CJC_DB Try this:

SN_OEM = MAXX(FILTER('BOM',[IAL Part Number] = 'ANF'[P/N]),[Merged])

If that doesn't work then try doing a Trim operation in Power Query for P/N and IAL Part Number columns.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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