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.
Hello all,
I'm having an issue right now linking up multiple tables and I can't seem to find a solution
I have the following tables
Right now I have all working properly besides the Absent table. I just added this and I expected to create a relationship with the Date Table and Person Details Table but the application is stoping me. Here are the current relationships
The plan was to add the absent table, make a relationship to Date Table (On Date) and Person Details Table (On ID) that way when I filter use the Date Table I'll get the correct data for that day in the Personnel Details table as well as any Work Details/Absent Details associated with that date as well.
Here some sample tables.
Date Table
Date |
3/1/2020 |
3/2/2020 |
3/3/2020 |
3/4/2020 |
3/5/2020 |
3/6/2020 |
3/7/2020 |
3/8/2020 |
3/9/2020 |
3/10/2020 |
3/11/2020 |
3/12/2020 |
3/13/2020 |
Personnel Details Table
date | id | name | age |
3/1/2020 | a | john | 50 |
3/1/2020 | b | james | 50 |
3/1/2020 | c | joe | 50 |
3/2/2020 | a | john | 50 |
3/2/2020 | b | james | 51 |
3/2/2020 | c | joe | 50 |
3/3/2020 | a | john | 50 |
3/3/2020 | b | james | 51 |
3/3/2020 | c | joe | 50 |
3/4/2020 | a | john | 50 |
3/4/2020 | b | james | 51 |
3/4/2020 | c | joe | 50 |
Work Details Table
date | id | job type |
3/1/2020 | a | chef |
3/1/2020 | b | mechanic |
3/1/2020 | c | security |
3/2/2020 | a | chef |
3/2/2020 | b | mechanic |
3/2/2020 | c | security |
3/3/2020 | a | chef |
3/3/2020 | b | security |
3/3/2020 | c | gardner |
Absent Details Table
date | id | reason |
3/4/2020 | a | scheduled day off |
3/4/2020 | b | scheduled day off |
3/4/2020 | c | scheduled day off |
3/5/2020 | b | vacation |
3/5/2020 | c | vacation |
Any help would be appreciated!
Solved! Go to Solution.
@thmonte ,
So your requirement is to build a absent table and make another relationship bridge between 'Date' and 'Person Details', right? I'm afraid this may cause ambiguous error. You need to disable the relationshio between 'Date' and 'Work Details', 'Work Details' and 'Person Details' firstly.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@thmonte ,
So your requirement is to build a absent table and make another relationship bridge between 'Date' and 'Person Details', right? I'm afraid this may cause ambiguous error. You need to disable the relationshio between 'Date' and 'Work Details', 'Work Details' and 'Person Details' firstly.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You should have continuous, preferably created using calendar and mark as Date. Common Id table and join to all other tables.
Here are some articles I wrote that should help you.
https://exceleratorbi.com.au/the-optimal-shape-for-power-pivot-data/
https://exceleratorbi.com.au/multiple-data-tables-power-pivot/
https://exceleratorbi.com.au/create-lookup-table-power-pivot/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |