Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,122
Community Members
 
Community Events
176
Community Groups

Merge same columns from different tables

Hello Atlassian Team

I want to combine the Column 'Weekly Total' from different tables into one table.

2022-12-08 14_54_57-Window.png

I would like for there to be one table with Weekly Total as separate Columns:

2022-12-08 14_55_02-Window.png

If possible I would like there to be a way to distinguish if Weekly Total was from Table A or B.

I've been using Table Transformer but not able to get the columns integrated the way I want it to. Anyone have some advice on how to implement this?

 

 

Thanks

2 answers

Hi @AG

Please follow my example. Here is a screenshot of your tables in the page edit mode:

 Fri 2-1.png

And here is your SQL query where we look up the two tables by the unique key column and rename other columns to distinguish if they are coming from the first or second table:
SELECT T1.'Key Field',
T1.'Total' AS 'Total from T1',
T2.'Total' AS 'Total from T2'
FROM T1 LEFT JOIN T2 ON T1.'Key Field' = T2.'Key Field'

Fri 2-2.png
Hope it helps your case.

Thanks Katerina

 

I am close, but it is showing the table as below, do you know why?

 

 

AG

 

 

2022-12-12 14_36_41-Copy of Akash Gondalia - GMSL - Confluence — Mozilla Firefox.png

Hi @AG,

Not sure as for now, but it looks like smth is messed up with table headers. 

As you can see on my screenshot, my tables have header rows: grey background is nor just color but real header row created by Confluence itself.

Your tables (I use the very first screenshot for reference here) have gray background both for the first row, for the first and last columns. Please check that the first row is a real header row and the first, last columns are not header columns (that it is just grey backgriound and bold text). 

If it doesn't help you, please check the version of the app and update it to the latest one if needed.

Like Stiltsoft support likes this

Are you using the Table Filter & Charts add-on from @Stiltsoft support ?

Hi Patrick

 

Yes I believe I am, the Weekly Total Column is derived using the Table Filter Macro and I am trying to combine the Weekly Total columns from different tables using the Table Transformer macro

 

 

Thanks

AG

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events