You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
My table transformer is giving me the below output,
Key | Objective | Epic | Team/s | Fix Version/s |
---|---|---|---|---|
ABC-1 | Objective 1 | Epic 1 | Sharky Spark | |
ABC-1 | Objective 1 | Epic 2 | ||
ABC-6 | Objective 6 | Epic 5 | Spark | |
ABC-9 | Objective 9 | Epic 10 | Anvil Phoenix Vortex | 2022.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-1 | Objective 1 | 1 | 2 |
ABC-6 | Objective 6 | 0 | 1 |
Hi @Samata Sabala,
Please try the following SQL query:
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'
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.