Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I am creating a project about football games and I have 2 columns named HomeTeam and AwayTeam o a table named Games and I have another table name Teams that contains information about the teams, 1 team per line.
I need to create a relationship between this 2 tables (Games and Teams), but I can't connect the table Teams with column HomeTeam or column AwayTeam, it can't be "one or another", is there any to connect 2 columns with 1 column?
When the user choose the game, for example, 49ers x Seahawks, the table teams should show information about this 2 teams.
Table Games
Id_Game | HomeTeam | AwayTeam |
1 | 49ers | Seahawks |
2 | Cowboys | Giants |
3 | Cardinals | Bengals |
4 | Browns | Packers |
5 | Steelers | Vikins |
Table Teams
Name_Team | Year_Fundation | Other Information |
49ers | 1950 | Info |
Seahawks | 1946 | Info |
Cowboys | 1976 | Info |
Giants | 1980 | Info |
Cardinals | 1840 | Info |
Bengals | 1955 | Info |
Browns | 1945 | Info |
Packers | 1939 | Info |
Steelers | 1971 | Info |
Vikings | 1960 | Info |
Solved! Go to Solution.
may be you can use this way:
1. Create Duplicate table with the same data from Teams. So, we have three tables. I call these as
a. Games b. Home Teams c. Away Teams.
2. Now, create relationship based on names (see below).
Now, Use table visual to input fields like this and don't forget to select is not blank from the visual filter. (see below)
can you share some data of two tables??
may be you can use this way:
1. Create Duplicate table with the same data from Teams. So, we have three tables. I call these as
a. Games b. Home Teams c. Away Teams.
2. Now, create relationship based on names (see below).
Now, Use table visual to input fields like this and don't forget to select is not blank from the visual filter. (see below)
User | Count |
---|---|
128 | |
108 | |
100 | |
64 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |