This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I have two tables that look like this. The tables are linked together by Name
Table 1
Name Task Date Completed Year/Month
Joe Take the order April 5, 2023 202304
Joe Fill the order April 5, 2023 202304
Joe Fill the order April 6, 2023 202304
Table 2
Name Year/Month Days Worked
Joe 202304 15
Joe 202305 21
The goal is to calculate how many tasks each person has completed per days worked each month. I can get a total for the tasks completed easily enough. My problem comes when I try to bring in the days worked. It seems like it should be simple (and I can do this in Tableau, but I've been forced to convert all of my Tableau workbooks into BI), but I can't find a way to divide the total tasks, which are calculated in Table 1, by the days worked from Table 2.
Solved! Go to Solution.
Hi @Greenterer ,
The problem comes from having a many-many relationship and also not know what month you want to work out tasks per month.
One way to fix the problem is to create a third table called "Users" which will contain just Joe's name. I am assuming there will be Bob, Alex and many more users.
Then Users will have a 1-to-many relationship with Table 1 and Table 2 based on Name.
Then you can add the following measure in Users:
Hope this helps.
If this answer helped, please mark it as the correct one and a thumbs up would be great 🙂
Boyan
That works perfectly. Thank you.
Hi @Greenterer ,
The problem comes from having a many-many relationship and also not know what month you want to work out tasks per month.
One way to fix the problem is to create a third table called "Users" which will contain just Joe's name. I am assuming there will be Bob, Alex and many more users.
Then Users will have a 1-to-many relationship with Table 1 and Table 2 based on Name.
Then you can add the following measure in Users:
Hope this helps.
If this answer helped, please mark it as the correct one and a thumbs up would be great 🙂
Boyan
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 30 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 63 | |
| 53 | |
| 31 | |
| 23 | |
| 23 |