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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
albalpbi
Frequent Visitor

Expand tables - PowerQuery or M

Hello everyone,

 

I have two tables: one with dates and one with a list of countries. Example:
Table 1

Date
1/1/2022
1/2/2022
1/3/2022


Table 2

Countries
France
Germany
Italy

 

I'm trying to expand the first table in order to have, for each date, all the countries listed in Table 2. The target table would look like:

DateCountries
1/1/2022France
1/1/2022Germany
1/1/2022Italy
1/2/2022France
1/2/2022Germany
1/2/2022Italy
1/3/2022France
1/3/2022Germany
1/3/2022Italy


Would you know how to help me?

Thank you!

3 REPLIES 3
Ahmedx
Super User
Super User

try to do the opposite, that is, translate the date into the country table

Ahmedx
Super User
Super User

pls try this

Screen Capture #1049.pngScreen Capture #1050.pngScreen Capture #1051.pngScreen Capture #1052.pngScreen Capture #1053.png

In PowerQuery it seems to work, but when I "Close & Load" the laod just keeps on going endlessly:

albalpbi_0-1683233118873.png

Consider that the largest table in this dataset is 2Gb, and the table we're creating is about 10k rows (40 countries over 250 dates), so I'm not sure about what's going

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.