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
Anonymous
Not applicable

Last None Blank in a row

I am currently trying to take a list of products from a bill of materials (BOM) which I have separated out manually and would now like to add a new column which displays the bottom level material for each product. Is there a way to iterate over each column in a row and then pull the value out?

 

For Example, the 'Bottom Level' column in the table below is what I would like to add in, the main issue appears to be how some things drop out earlier than others and I have no idea how to fix this.

 

ProductsSub Level 1Sub Level 2Sub Level 3Bottom Level
Product AComponent 1Component 2Component 3Component 3
Product BComponent 1  Component 1
Product CComponent 1Component 2  Component 2

 

Many thanks in advance to anyone that can help

If there is any other information you think I have missed please let me know

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Try a new column like

coalesce([Sub Level 3],[Sub Level 2],[Sub Level 1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I tried using Coalesce however it doesnt seem to accept column headers as inputs.

Anonymous
Not applicable

Of course, COALESCE DOES accept column headers as inputs IF you're in a row context. Here's the syntax and semantics:

https://dax.guide/coalesce/
Anonymous
Not applicable

Does this also work if each column sits in a different table?

 

i.e. In my model, sub level one is in a different table to sub level two as this was the only way to extract the data 

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.