cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrainey Member
Member

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 Super Contributor
Super Contributor

Re: Creating Relationships

Hi @mrainey

 

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!

mrainey Member
Member

Re: Creating Relationships

@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

Community Support Team
Community Support Team

Re: Creating Relationships

@mrainey,

 

Add a calculated table and then build relationships.

http://community.powerbi.com/t5/Desktop/Cannot-create-relationships-Power-BI-finding-duplicates-that...

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.
mrainey Member
Member

Re: Creating Relationships

@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
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 6 members 825 guests
Please welcome our newest community members: