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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ZKailar
Frequent Visitor

Duplicating date for each distinct value

Hi All!

 Im looking for a way to create a new table that duplicates the date for each distinct value in another table/column. I currently have a date table and another table that is pulling the distinct values. This is what it should look like:

DATE         Color

1/1/2019   Blue

1/1/2019   Green

1/1/2019   Black

1/2/2019   Blue

1/2/2019   Green

1/2/2019   Black

1/3/2019   Blue

1/3/2019   Green

1/3/2019   Black

 

 Thanks in advance for any help!

1 ACCEPTED SOLUTION
AlB
Super User
Super User

Hi @ZKailar 

You should show the original tables or explain better how the new table is built. It is not completely clear. Try creating a calculated table like this:

NewTable =
CROSSJOIN ( 'Date'[Date], OtherTable[Color] )

 

 

 

View solution in original post

2 REPLIES 2
AlB
Super User
Super User

Hi @ZKailar 

You should show the original tables or explain better how the new table is built. It is not completely clear. Try creating a calculated table like this:

NewTable =
CROSSJOIN ( 'Date'[Date], OtherTable[Color] )

 

 

 

ZKailar
Frequent Visitor

That worked well, i have a couple things to change but that will work! Thanks for the help, and ill keep that in mind for future posts. Thanks again!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.