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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Creating Relationships

Given this setup, is there any way I can group this data by the co ID? I have other tables that I cannot merge or create relationships to because my main dataset can have a co ID more than once depending on other factors, but my aim isn't to get rid of the other fields because I still need them:

1.PNG

4 REPLIES 4
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

I'm not clear what you need.  You can create calculated measures that can perform SUM, COUNT, AVERAGE type calculations over a group of rows that belong to a particluar co ID.  Is that what you mean?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

@Phil_Seamark When trying to create a relationship between these two tables, I'm stopped because my CService dataset will have ID's appear more than once. Both fields from both tables are the same data I'm attempting to link on:

1.PNG

@Anonymous,

 

Add a calculated table and then build relationships.

http://community.powerbi.com/t5/Desktop/Cannot-create-relationships-Power-BI-finding-duplicates-that-do/m-p/332433#M148641

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-chuncz-msft This is nice but all it does is return distinct values from my 'Cservice' dataset. I need my 'CService' dataset to link with my 'EMS Survey' dataset while still being able to use my start and end dates from 'CService'. The 'co' field from 'Cservice' is the same as the 'New ID' field in my 'EMS Survey' dataset. I can create a relationship between 'EMS Survey' and 'Table' of the distinct co values, but I still need access to other fields within 'CService':

1.PNG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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