This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi, Lets say I have a table/query for products, and a table/query for countries
query1 | query2
Product | Countries
-Tomato | - US
-Onion | - UK
-Pepper | - Germany
I want to create a new table/query that will be a database;
query3 - NEW
Product Countries
Tomato US
Tomato UK
Tomato Germany
Onion US
Onion UK
Onion Germany
Pepper US
Pepper UK
Pepper Germany
is there a dax formula to create query3?
Hi,
Pls create 2 tables Products and Countries and then use the below PQ
let
Source = Product,
#"Added Custom" = Table.AddColumn(Source, "Custom", each Countries),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Countries"}, {"Countries"})
in
#"Expanded Custom"
Regards
Thanks for the detailed explanation, where should this be enterred? asa new custom column?
Hi @EladAppelNN,
Sure you could create that table with DAX, see here.
However if you're bringing your data in and loading that into Power Query, it makes more sense to create it there. To process is really simple. Go to your Products (query1), select Add Custom column
In the dialog box enter the Countries (query2) name, press OK
You'll see a nested table in the new column and with those sideward arrows in the header you can extract fields.
Ps. If this helps solve your query please mark this post as Solution, thanks!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.