- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

What is the best way to group by
I have a table as follows:
Parent ID Child ID Child Status Child Points
1 1 Open 2
1 2 Open 1
1 5 Closed 5
2 8 Dev null
2 3 Review 1
I need this table in tact, but I need a new table as follows (I am eventually a group by):
Parent ID # of Children # of Child Points
1 3 8
2 2 1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I think I may have figured it out, I had to:
1) Duplicate the table (since I need to original details)
2) On the Duplicated table use the Group By with multiple conditions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @EaglesTony ,
If you're using Power BI, then you may not need to physically create the second table (depending on your requirements).
The second table can be visualised based on the first table with the following measures:
// If [Child ID] is always unique per [Parent ID]
noofChildren = COUNTROWS(Table1)
// If [Child ID] is NOT always unique per [Parent ID]
noofUniqueChildren = DISTINCTCOUNT(Table1[Child ID])
noofChildPoints = SUM(Table1[Child Points])
Use these measures along with your [Parent ID] column in a table/matrix visual and it will output your second table.
Pete
Now accepting Kudos! If my post helped you, why not give it a thumbs-up?
Proud to be a Datanaut!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Yes, use the 'Group By'. What are you having difficulty with?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I think I may have figured it out, I had to:
1) Duplicate the table (since I need to original details)
2) On the Duplicated table use the Group By with multiple conditions

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
08-02-2024 03:08 AM | |||
02-06-2025 06:57 AM | |||
01-29-2025 08:36 AM | |||
12-31-2024 09:11 AM | |||
01-23-2025 11:27 AM |
User | Count |
---|---|
30 | |
26 | |
24 | |
13 | |
10 |
User | Count |
---|---|
24 | |
23 | |
18 | |
12 | |
9 |