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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
willayd
Advocate I
Advocate I

Power Query Rules for Column Expansion

Let's say I have two tables in a database, Sales and Sales_Detail, that have a defined primary / foreign key relationship. I've noticed when pulling the Sales_Detail into Power Query that I get the option to "expand" columns from the Sales table.

 

However, if I place a view directly on top of the Sales_Detail and pull that into Power Query instead, I lose the ability to still expand columns from the Sales table. I imagine this is because Power Query doesn't introspect the view to see the relationships behind it, but is this documented anywhere or alternately is there a way to explicitly tell the Power Query editor to allow expansion of Sales columns in the view?

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

You can just do it manually. Load both tables in Power a Query and do a merge on the key, then you can expand from there. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

we generally advise our developers to switch off all the automatic field type and relationship detection options. Oftentimes these options lead to questionable results.

 

The developers need to know their data models, and they need to make these decisions themselves.

MattAllington
Community Champion
Community Champion

You can just do it manually. Load both tables in Power a Query and do a merge on the key, then you can expand from there. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors