Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I essentially need to Calculate Hourly Rate * Sum of Hours for User.
Table: HR Data (This table has one row for each user)
User ID, Hourly Rate
450294, $40
345020, $56
837498, $43
Table: Time Log Data (This table has many rows for users with many projects and dates
User ID, Project, Hours
450294, Project A, 20
450294, Project B, 80
450294, Project C, 5
345020, Project A, 40
345020, Project B, 40
345020, Project C, 20
837498, Project A, 13
837498, Project B, 20
837498, Project C, 5
Any ideas? I'm open to doing a measure OR creating a new table. But I was not able to make a custom column in one table because I could not get it to pull data from the other.
Solved! Go to Solution.
@Anonymous 
You can create a relationship between the two tables and use the following measure. Insert a Table Visual on the canvas, insert user id from User table and the measure
Total = 
SUMX(
    Users,
    Users[ Hourly Rate] * CALCULATE(SUM('Time Log'[ Hours]))
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕  Subscribe and learn Power BI from these videos
 ⚪ Website ⚪  LinkedIn ⚪  PBI User Group 
@Anonymous 
You can create a relationship between the two tables and use the following measure. Insert a Table Visual on the canvas, insert user id from User table and the measure
Total = 
SUMX(
    Users,
    Users[ Hourly Rate] * CALCULATE(SUM('Time Log'[ Hours]))
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕  Subscribe and learn Power BI from these videos
 ⚪ Website ⚪  LinkedIn ⚪  PBI User Group 
Thank you, this is exactly what I needed!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
            | User | Count | 
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | 
| User | Count | 
|---|---|
| 24 | |
| 11 | |
| 11 | |
| 9 | |
| 8 |