Forum Discussion

jdiruzza's avatar
jdiruzza
Frequent Visitor
3 years ago
Solved

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 Reply

  • Hi,

    Please check the below picture and the attached pbix file.

     

     

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