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
RahulKumarBIT
Regular Visitor

Creating a new table using date table and items from other table

Hi

I have a date table. I have another table having two columns - ID and category for each id. I want to create a new table which will have 2 columns - Date series from date table and ID. Following are the issues i am trying to resolve:

1) How to create the new table bringing in date series and id from the two other tables.

2) Date Series in the 1st column will repeat for each id

 

I have shown below a sample of two tables along with the desired output table:

1) 1st Input - Date Table:

EOM Dates
01/31/2023
02/28/2023

2) 2nd Input - ID Table:

ID
501
502

3) Output Table

EOM DatesID
01/31/2023501
02/28/2023501
01/31/2023502
02/28/2023502
1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @RahulKumarBIT  after you imported your data, new table should be:

Output Table =
    CROSSJOIN('1st Input - Date Table',
    '2nd Input - ID Table'
)
If this helps please kudo.
If this solves your problem please accept it as a solution.
some_bih_0-1686083886989.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

2 REPLIES 2
RahulKumarBIT
Regular Visitor

Thanks for the help @some_bih 

some_bih
Super User
Super User

Hi @RahulKumarBIT  after you imported your data, new table should be:

Output Table =
    CROSSJOIN('1st Input - Date Table',
    '2nd Input - ID Table'
)
If this helps please kudo.
If this solves your problem please accept it as a solution.
some_bih_0-1686083886989.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






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.

Top Solution Authors