Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I have timecard data in a PowerBI table that looks like this:
Staff Project Hours
A 1000 2
A 2000 4
A 3000 2
B 1000 3
B 2000 1
B 4000 3
I would like to create a table that sums the hours each individual spent working on common projects with each other individual. In this case, A worked on projects 1000 and 2000 with B and vice versa. So the summary table would look like this:
Staff A B
A - 2+4 = 6
B 3+1=4
Is there a way to do this with DAX? Any help is appreciated.
Solved! Go to Solution.
Hi @bnevers
Try this
1. Place Table1[Staff] in a table visual
2. Place this measure in the visual
Measure =
SUMX (
Table1;
IF (
CALCULATE (
COUNT ( Table1[Project] );
ALL ( Table1[Hours] );
FILTER (
ALL ( Table1[Staff] );
Table1[Staff] <> SELECTEDVALUE ( Table1[Staff] )
)
) <> 0;
Table1[Hours]
)
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi @bnevers
Try this
1. Place Table1[Staff] in a table visual
2. Place this measure in the visual
Measure =
SUMX (
Table1;
IF (
CALCULATE (
COUNT ( Table1[Project] );
ALL ( Table1[Hours] );
FILTER (
ALL ( Table1[Staff] );
Table1[Staff] <> SELECTEDVALUE ( Table1[Staff] )
)
) <> 0;
Table1[Hours]
)
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 26 | |
| 23 | |
| 19 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 46 | |
| 44 | |
| 43 | |
| 36 | |
| 31 |