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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Pete230
Helper III
Helper III

Power BI power Querry: how to enhance rows with other data (number of rows grow)

Hi together;

 

Im sturggeling since a few days with the following szenario.

 

This is my input data (table 1): Towns and Dates:

NameDate
Capetown10.11.2023
Paris09.11.2023
Copenhagen08.10.2023
Copenhagen15.09.2023
Copenhagen17.09.2023

 

I would like to enhance this (table 1) with IDs, each town has 2-3 IDs which can be found in another table (table 2):

CityID
Capetownabc
Capetowndef
Parisghi
Parisjkl
Parismno
Copenhagenpqr
Copenhagenstu

 

so the result looks like this (table 3):

CityIDDate
Capetownabc10.11.2023
Capetowndef10.11.2023
Parisghi09.11.2023
Parisjkl09.11.2023
Parismno09.11.2023
Copenhagenpqr08.10.2023
Copenhagenstu08.10.2023
Copenhagenpqr15.09.2023
Copenhagenstu15.09.2023
Copenhagenpqr17.09.2023
Copenhagenstu17.09.2023

 

does anyone know how to achive this?

 

Would be great!

 

Cheers, Pete

1 ACCEPTED SOLUTION
kleigh
Responsive Resident
Responsive Resident
3 REPLIES 3
miTutorials
Super User
Super User

In case you need a video tutorial on Merge queries here it is !!

 

How to Join Tables | Merge Columns and Append Rows in PowerBI | MiTutorials - YouTube

kleigh
Responsive Resident
Responsive Resident

That one was easy, thanks!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors