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
SharonHMA
Helper I
Helper I

Relationships with edited data

I am trying to create a relationship along 'Service Location' between two data sets (SLA Table and FSA Table) however I'm having trouble because the names are not unique in either table.

 

SLA Table contains Service Location Ascend (unique) which translates into Service Location (not unique - eg two Service Location Ascend can roll up to one Service Location for reporting purposes).

 

FSA Table is my market share geographic info.  Each FSA (unique) is rolled up to a Service Location (not unique).

 

I'm very new to Power BI. Would anyone have any suggestion on how I can create a unique field or find a work around that would allow me to link these data sets along Service Location.  

 

 

 

rlnship.JPG

 

 

 

 

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@SharonHMA You can go to power bi desktop query editor -> create custom columns that can be join of two columns to make it unique or you can create calculated columns under Modelling tab that can be join of two other columns to make it unique.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @SharonHMA,

 

You can use dax formula to create a new table(distinct) based on “Service Location” and “Service Location Ascend”, then use the new table to link above tables’ columns.

 

For example:

Table = DISTINCT(UNION(VALUES(Sheet1[Code]),VALUES(Sheet2[Code])))

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
ankitpatira
Community Champion
Community Champion

@SharonHMA You can go to power bi desktop query editor -> create custom columns that can be join of two columns to make it unique or you can create calculated columns under Modelling tab that can be join of two other columns to make it unique.

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.