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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
MrMarshall
Helper II
Helper II

Relation problem through lookuptable

I have two tables, and a relation between them through a lookup table.
Related with ID & UserID as:

Screenshot_69.png

Sales: 

UserIdProfitDate
120002018-02-01
120002018-02-01
12002018-02-02

Users: 

IdFirstname
1

Andrew

Other

UserIdOtherValueDate
152018-02-01
162018-02-02
142018-02-02

 

No relation errors. I am testing this with a simple matrix, as you can see, the OtherValue column is wrong, it should be as stated with red. 
What am I doing wrong?

Screenshot_68.png

 

1 ACCEPTED SOLUTION
Thejeswar
Super User
Super User

Hi @MrMarshall,

This is happening because you tables are joined only using UserID when the data is present for multiple days.

 

To Solve this join your tables using a concatenated column which is a concatenation of UserId and Date

 Screenshots for the same are given below

 

concatenated columnconcatenated column

 

 

 

 

 

Users TablesUsers TablesNew relationshipNew relationshipFinal OutputFinal Output

 Hope this helps!!!

 

 

View solution in original post

3 REPLIES 3
Thejeswar
Super User
Super User

Hi @MrMarshall,

This is happening because you tables are joined only using UserID when the data is present for multiple days.

 

To Solve this join your tables using a concatenated column which is a concatenation of UserId and Date

 Screenshots for the same are given below

 

concatenated columnconcatenated column

 

 

 

 

 

Users TablesUsers TablesNew relationshipNew relationshipFinal OutputFinal Output

 Hope this helps!!!

 

 

Hi!

I understand now. That was really helpful, Thx!

Although, it requires that I would create a Date value for each unique user. 
I cannot seem to get it to work in an automated way, say if I have 100 users. 
Any ideas?

Nvm, I figured it out! Created a list.
List.Dates([StartDate], 100, #duration(1,0,0,0))

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.