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, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
skourtip
Frequent Visitor

Combine calendar table with list of names

Hi to all

 

I need some help, i have a calendar table and for each day i want to combine with a list of names like this one

Calendar table:

01/01/2022

02/01/2022

03/01/2022

 

Names:

NAME1

NAME2

NAME3

 

The result i want is:

01/01/2022 NAME1

01/01/2022 NAME2

01/01/2022 NAME3

01/02/2022 NAME1

01/02/2022 NAME2

01/02/2022 NAME3

01/03/2022 NAME1

01/03/2022 NAME2

01/03/2022 NAME3

 

Is this possible?

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
bcdobbs
Super User
Super User

You're looking for a cross join or a Cartesian product.

 

If both tables exist in power query you can use this:

https://docs.microsoft.com/en-us/power-query/cross-join

 

or if you need to create a calculated table in dax use:

https://docs.microsoft.com/en-us/dax/crossjoin-function-dax

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Are both tables available in the Query Editor?  Do you want a Qury Editor solution?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
bcdobbs
Super User
Super User

You're looking for a cross join or a Cartesian product.

 

If both tables exist in power query you can use this:

https://docs.microsoft.com/en-us/power-query/cross-join

 

or if you need to create a calculated table in dax use:

https://docs.microsoft.com/en-us/dax/crossjoin-function-dax

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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