Forum Discussion

MrMarshall's avatar
MrMarshall
Helper II
8 years ago
Solved

Relation problem through lookuptable

I have two tables, and a relation between them through a lookup table. Related with ID & UserID as: Sales:  UserId Profit Date 1 2000 2018-02-01 1 2000 2018-02-01 1 200 2...
  • Thejeswar's avatar
    8 years ago

    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 column

     

     

     

     

     

    Users TablesNew relationshipFinal Output

     Hope this helps!!!