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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
gautik92
Regular Visitor

Cant Create Relationship

I want Date Field to be the relationship between tables 

i dont have a primary key or unique field 

how can i do that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi gautik92,

 

According to your description, you want to create a relationship from two table with have the delicate data, right?

 

If as I said, you can follow below methods:

 

a. Use a temp table to link above tables’ column which has the dispute date.

 

Capture.PNG

SalesRecords:

Capture2.PNG

StockIn:

Capture3.PNG

Customer:

Capture4.PNG

 

‘SalesRecords’ and ‘stockIn’ contain ‘customer’, use customer to link two table.

b. Search for a field which contain in two tables and has the unique data, use it to create the relationship.

 

‘SalesRecords’ and ‘stockIn’ contain ‘Date’ and it has unique data, use date to create relationship.

c. Use LookupValue function to get the value currently.

 

Lookupvalue(SalesRecords[Amount],SalesRecords[CustomerID],Values(StockIn[CustomerID]))

 

Reference:

lookupvalue function

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
ankitpatira
Community Champion
Community Champion

@gautik92 You can simply create relationship between date fields from two tables provided field that you're creating relationship FROM doesn't have any duplicates.

Having Duplicate date fields

Anonymous
Not applicable

Hi gautik92,

 

According to your description, you want to create a relationship from two table with have the delicate data, right?

 

If as I said, you can follow below methods:

 

a. Use a temp table to link above tables’ column which has the dispute date.

 

Capture.PNG

SalesRecords:

Capture2.PNG

StockIn:

Capture3.PNG

Customer:

Capture4.PNG

 

‘SalesRecords’ and ‘stockIn’ contain ‘customer’, use customer to link two table.

b. Search for a field which contain in two tables and has the unique data, use it to create the relationship.

 

‘SalesRecords’ and ‘stockIn’ contain ‘Date’ and it has unique data, use date to create relationship.

c. Use LookupValue function to get the value currently.

 

Lookupvalue(SalesRecords[Amount],SalesRecords[CustomerID],Values(StockIn[CustomerID]))

 

Reference:

lookupvalue function

 

Regards,

Xiaoxin Sheng

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