cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mfa
Frequent Visitor

Creating a table with dates and distinct customers

Hello Power Bi Community,

 

this is my first post so here goes.

 

I have a table of distinct customers..

Table 1:

Customers

Customer1

Customer2

Customer3

 

I want to create a table that looks like this

 

Date        Customer

1/1/21     Customer1

1/1/21     Customer2

1/1/21     Customer3

2/1/21     Customer1

2/1/21     Customer2

2/1/21     Customer3

3/1/21     Customer1

3/1/21     Customer2

3/1/21     Customer3

...

 

thanks in advance

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @mfa 

Please check the below.

 

Picture1.png

 

New Table =
CROSSJOIN(VALUES(Dates[Date]), VALUES(Customers[Customer]))
 
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi, @mfa 

Please check the below.

 

Picture1.png

 

New Table =
CROSSJOIN(VALUES(Dates[Date]), VALUES(Customers[Customer]))
 
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!