Forum Discussion
Anonymous
7 years agoNot applicable
Combining timesheet files
I have two timesheet data sources, one for employees and one for contractors. They both use a unique ID, a date and the number of days worked The contractors table has four columns, unique ID...
- Anonymous7 years ago
HI Anonymous,
I'd like to suggest you merge them with dax formula.
Sample: use selectcolumns and union functions to combine them.
Merged = UNION ( SELECTCOLUMNS ( contractors, "unique ID", [unique ID], "date", [date], "hours", [hours], "workdays", [workdays], "Source", "contractors" ), SELECTCOLUMNS ( employees, "unique ID", [unique ID], "date", [date], "hours", [hours], "workdays", [workdays], "Source", "employees" ) )Regards,
Xiaoxin Sheng
Greg_Deckler
7 years agoCommunity Champion
Use an Append query in Power Query.
Or you could use UNION in DAX