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

Using Table Transformer to show counts per row based on cell value

My table transformer is giving me the below output,

Key
Objective
Epic
Team/s
Fix Version/s
ABC-1Objective 1Epic 1Sharky Spark 
ABC-1Objective 1Epic 2  
ABC-6Objective 6Epic 5Spark 
ABC-9Objective 9Epic 10Anvil Phoenix Vortex2022.11.29

I would like to get a count on rows that have NULL values grouped by Objective column i.e.

Key
Objective
Unassigned Team/s
Unassigned Fix Version/s
ABC-1Objective 11 2
ABC-6Objective 60 1

1 answer

4 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 Leaders.
Sep 16, 2022 • edited

Hi @Samata Sabala,

Please try the following SQL query:

Fri 7-1.png

SELECT T1.'Key',
SUM(IF(T1.'Team/s' IS NULL, 1, 0)) AS 'Unassigned Team/s',
SUM(IF(T1.'Fix Version/s' IS NULL, 1, 0)) AS 'Unassigned Fix Version/s'
FROM T1 GROUP BY T1.'Key'

Fri 7-2.png

Hope this helps your case.

 

UPD. Forgot about the "Objective" column: add it to the query if you want to show this data as well.

SELECT T1.'Key', T1.'Objective',
SUM(IF(T1.'Team/s' IS NULL, 1, 0)) AS 'Unassigned Team/s',
SUM(IF(T1.'Fix Version/s' IS NULL, 1, 0)) AS 'Unassigned Fix Version/s'
FROM T1 GROUP BY T1.'Key', T1.'Objective'

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events