Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a table with three columns(Team name, created date, and completed date)
| team | created | completed |
| A | 1/1/2022 | 1/1/2022 |
| A | 1/3/2022 | null |
| A | 1/3/2022 | 1/3/2022 |
| A | 1/3/2022 | null |
| A | 1/5/2022 | 1/5/2022 |
| R | 1/1/2022 | 1/1/2022 |
| R | 1/3/2022 | 1/3/2022 |
| R | 1/3/2022 | null |
| R | 1/3/2022 | 1/3/2022 |
| T | 1/5/2022 | 1/5/2022 |
| T | 1/1/2022 | null |
| T | 1/3/2022 | 1/3/2022 |
what i want to do is group by team and get the created and complted tickets counts. Like below result i only need to get the count for dates not null values,
ex: team A created 5 tickets but complted only 3 because of two null values.
Expected output:
| team | created | completed |
| A | 5 | 3 |
| R | 4 | 3 |
| T | 3 | 2 |
Tried to get this usging power query group by but didnt get the expected output.
Solved! Go to Solution.
@Anonymous
pls try this
= Table.Group(#"Changed Type", {"team"}, {{"Count", each List.NonNullCount([created]), Int64.Type}, {"Count2", each List.NonNullCount([completed]), Int64.Type}})
pls see the attachment below
Proud to be a Super User!
Hi,
Try these measures
Created = countrows(Data)
Completed count = calculate([Created],Data[completed]<>blank())
Hope this helps.
Thanks. but how do i group by teams?
@Anonymous
pls try this
= Table.Group(#"Changed Type", {"team"}, {{"Count", each List.NonNullCount([created]), Int64.Type}, {"Count2", each List.NonNullCount([completed]), Int64.Type}})
pls see the attachment below
Proud to be a Super User!
Thanks. Did u do the above code by clicking "Group By" button or just using the code?
you can click group by and select count first, then update the formula.
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!