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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Boing1968
New Member

Linking BOM Header to First item in Production BOM

I have a very simple BOM header - Production BOM set up where the major component for all parents is made from the item on first line of the production BOM. I would like to add an is made from field so that every production bom header is populated with its major component. I am trying to use LOOKUPVALUE to get this data, and have tried several methods but keep running into the old chestnut "A table of multiple values was supplied where a single value was expected." I am new to DAX and already have no hair!! finding this message a little frustrating as i have tried several approaches, the simplest of which is this. 

 
Column = lookupvalue('Navision$Production BOM Line'[No_],'Navision$Production BOM Line'[lookup],'$NavisionProduction BOM Header'[lookup])
 
The lookup field = concatenate(Bom_no),"10000" to select first line 
 
The data in every lookup field is unique, am struggling to understand why is doesnt work. Any pointers would be greatly appreciated.
 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Boing1968,

This issue will appear when your expression gets multiple returns, you can set 'Alternate Result' with the aggregation function to prevent this:

Column =
LOOKUPVALUE (
    'Navision$Production BOM Line'[No_],
    'Navision$Production BOM Line'[lookup], '$NavisionProduction BOM Header'[lookup],
    MAX ( 'Navision$Production BOM Line'[No_] )
)

Notice: Calculated column does not interact with filter effects, if you want to get the dynamic result, please use the measure expression instead.

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Boing1968
New Member

I have seen the error of my ways and now have it working......

Anonymous
Not applicable

HI @Boing1968,

This issue will appear when your expression gets multiple returns, you can set 'Alternate Result' with the aggregation function to prevent this:

Column =
LOOKUPVALUE (
    'Navision$Production BOM Line'[No_],
    'Navision$Production BOM Line'[lookup], '$NavisionProduction BOM Header'[lookup],
    MAX ( 'Navision$Production BOM Line'[No_] )
)

Notice: Calculated column does not interact with filter effects, if you want to get the dynamic result, please use the measure expression instead.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.