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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
Resolver III
Resolver III
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
Resolver III
Resolver III

That one was easy, thanks!

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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