The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Table Transformer - Join Tables with Multiple Matches

Emily Berg
Contributor
November 4, 2021

Hello Community!

I have two tables I would like to combine - 

SR KeyPR Key
SR-51 
SR-56 
SR-3 
SR-3524PR-132

+

SR KeyPR Key
SR-51SR-51
SR-56 
SR-3SR-3
SR-3524SR-3524

=

SR KeyPR Key
SR-51SR-51
SR-56 
SR-3SR-3
SR-3524PR-132
SR-3524SR-3524

I need to be able to keep match from both tables (see SR-3524 row).

Please help!!

Emily

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 5, 2021

Hi @Emily Berg ,

We can suggest adding an extra step to the case - the Pivot Table macro.

Fri 11-1.png

Via the Table Transformer macro you simply merge the two tables as @Grigory Salnikov has suggested. And via the Pivot Table you group the result table by the SR Key.

Fri 11-2.png

Here we use the bullet point for items - so it is easy to see how the result table was grouped but you can always change it in the Pivot Table macro settings.

The second option may be using the Table Filter macro on top of the Table Transformer. There you may set the reversed filters and hide all the empty cells from the result table. But you will loose the SR-56 line - both PR keys for this SR key are empty. If you don't need such lines, then it may be another workaround for the case.

0 votes
Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 4, 2021

Hi @Emily Berg !

"Merge tables" should do or SQL query

select * from T*
Emily Berg
Contributor
November 4, 2021

Hi @Grigory Salnikov

Unfortunately, that is not the output I am looking for - your suggestion returns the following:

2021-11-04_15-18-03.png

Like Grigory Salnikov likes this
Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 5, 2021

I see now, thank you for pointing that out.

If keeping empty records is not necessary I would suggest the following:

select * from T* where 'PR Key' IS NOT NULL
TAGS
AUG Leaders

Atlassian Community Events