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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Pete230
Helper II
Helper II

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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