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,555,289
Community Members
 
Community Events
184
Community Groups

Table Transform - results of a subquery as a field of a query

Richard Moe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2023

Hi there:

Not even sure how to formulate my question clearly which may be why I can't find any info on it:

I have two tables (Page Properties reports actually); for simplicity's sake:

Table 1: Projects

  • Project Name
  • Project Leader

 

Table 2: Sub-projects

  • Name
  • Parent Project Name (JOIN on this)
  • End Date

 

What I'm looking for is a table report that concatenates the names of all the Sub Projects as a field of the Projects, e.g.

"Proj 1", "Jane Smith", "SubProject 1, Subproject 2, Subproject 3"
"Proj 2", "Joe Brown", "SubProject a, Subproject b"

That last field, I'm not sure how to accomplish. Of course my easy button would be to join the two and get an output like:


"Proj 1", "Jane Smith", "SubProject 1"

"Proj 1", "Jane Smith", "SubProject 2"

Etc.

But I'd like to aggregate on that 3rd column for my table display such that the example output above is 2 rows instead of the 5 that a simple join would generate (in fact, I'd use that 3rd column as links back to the page the has that page properties report).

Any tips and tricks that could accomplish this? Thanks!

1 answer

4 votes
Stiltsoft support
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 Leaders.
May 19, 2023 • edited

Hi @Richard Moe ,

The simplest way to group your result table is to use the Pivot Table macro.

As you have Cloud, insert the Table Toolbox macro and create the following sequence inside its shell: your Page Properties Report macros <- the Table Transformer macro (to join your tables and/or perform some calculations) <- the Pivot Table macro (to aggregate your data without losing any links).

Here is an example how you may set your Pivot Table macro:

Fri 6-1.pngFri 6-2.png

In the Options tab you may select what "Literal value delimiter" you want to use (comma for my example) and hide totals/control panel.

Hope this workaround helps your case. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events