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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jdiruzza
Frequent Visitor

Append table with no matching columns

I am trying to a new table out of two exisiting tables. Table 1 has all the dates & Table 2 has the department & cost.  All the departments & costs are static for the year but I need there to be a department and cost for each date (see example). Is there a way to append or merge these tables?

 

TABLE 1:  
DATE  
11/4/2022  
11/18/2022  
12/2/2022  
12/16/2022  
   
TABLE 2:  
DEPTCOST 
154 $    10.00 
654 $       7.00 
102 $    14.00 
   
RESULT:  
DATEDEPTCOST
11/4/2022154 $    10.00
11/4/2022654 $       7.00
11/4/2022102 $    14.00
11/18/2022154 $    10.00
11/18/2022654 $       7.00
11/18/2022102 $    14.00
12/2/2022154 $    10.00
12/2/2022654 $       7.00
12/2/2022102 $    14.00
12/16/2022154 $    10.00
12/16/2022654 $       7.00
12/16/2022102 $    14.00
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1670642824917.png

 

Result table = 
GENERATE( 'Table 1', 'Table 2' )

 

 

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


Go to My LinkedIn Page


View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1670642824917.png

 

Result table = 
GENERATE( 'Table 1', 'Table 2' )

 

 

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


Go to My LinkedIn Page


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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