Use case
You need to gather/merge data of multiple columns in a single one across the rows.
Solution
- Switch the page to the edit mode.
- Insert the Table Transformer macro and paste the table within the macro body.
- Select the macro and click Edit.
- Switch to the SQL query tab.
Enter the following SQL query:
SELECT *, ( 'First name' + " " + 'Last name' ) AS 'Full name' FROM T1
- Click Next.
- Set the worklog settings.
- Save the macro and the page.
If your source table columns happen to have some formatting applied which you intend to keep after the columns merge CONCAT_VIEW function is the best way to ensure that, allowing to not only perform the merge but also retain the original formatting of a column&cell, including links.
SELECT CONCAT(T1.'Surname'," ",T1.'Name') as 'FORMATTING LEFT', CONCAT_VIEW(T1.'Surname'," ",T1.'Name') as 'FORMATTING RETAINED' FROM T1