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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.