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
Hi
I have a large trfact table with the hours per employee per date. I also have an employee table which is linked to this tabel which contains the Hourly rate. I want to Calculate the [sum of hours] * [hourly rate] without having to add an extra column to my large fact table.
Hours table
| Date | Employee id | Hours |
| 1-1-2021 | 1 | 2 |
| 1-1-2021 | 1 | 3 |
| 1-1-2021 | 2 | 5 |
| 2-1-2021 | 2 | 3 |
My employee table looks like this
| Id | rate |
| 1 | 10 |
| 2 | 15 |
I Want to multiply the hourly rate times the sum of the hours to get the total amount.
hope you can help me
Solved! Go to Solution.
Hi @Anonymous !
You need to have following 2 measure;
Total Hours = SUM(Hours[Hours])
Total Amount = SUMX(RELATEDTABLE(Employee), [Rate] * [Total Hours])
Your Employee & Hours table needs to be connected through Active relationship based on EmployeeID column.
The first measure calculates [Total Hours], second measure calculates [Total Amount], You can plot this against EmployeeID or any other attribute.
Regards,
Hasham
Hi @Anonymous !
You need to have following 2 measure;
Total Hours = SUM(Hours[Hours])
Total Amount = SUMX(RELATEDTABLE(Employee), [Rate] * [Total Hours])
Your Employee & Hours table needs to be connected through Active relationship based on EmployeeID column.
The first measure calculates [Total Hours], second measure calculates [Total Amount], You can plot this against EmployeeID or any other attribute.
Regards,
Hasham
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 |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |