Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Grouping by Primary Key

Hi All,

 

Do you all know how I could group these values together in PBI to make each distinct inspection it's own row? I have joined these tables together in the power query editor and placed all the values in VM_Patrol as it is the parent table. Each of these tables have inspection and supply information about them inspection.

 

Thanks!

 

CollinSharp1_1-1632145898390.png

 

 

1 ACCEPTED SOLUTION

@Anonymous Well, all I can say is that there is something about those two rows that is causing Power BI to think that one is unique over the other. I can't tell what because I can't see all of your columns. It should *not* be any numeric column assuming you have an aggregation on those. So it must be some text column.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@Anonymous Difficult to say, you need to make sure you are aggregating and not having things set to "Do not summarize"



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi Greg, I have sum on all of them. Any other suggestions? I've looked at the group by function in the power query editor, but that doesn't seem to be the correct solution either.

@Anonymous Well, all I can say is that there is something about those two rows that is causing Power BI to think that one is unique over the other. I can't tell what because I can't see all of your columns. It should *not* be any numeric column assuming you have an aggregation on those. So it must be some text column.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors