Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone,
Thanks in advance for your time and help.
Here is a sample of my table :
I am trying to create a Matrix that counts the number of transactions per responsable & per status of transaction.
My Matrix should look like that :
In the Matrix above, the names displayed in lines is taken from another table that just list the names in a column named "Responsable names"
I am looking for the right formula for my measure to count the transactions. I have tried many things.... It never fits.
ps : When there are 2 responsables for one transaction, it should be counted as 1 for responsable 1 and 1 for responsable 2.
If anyone has a clue, I would be very grateful.
Thanks a lot
@Anonymous, try this measure. You'll need to create two relationships as shown below.
Transaction Count =
VAR vPerson1 =
COUNT ( 'Transaction'[Transaction ID] )
VAR vPerson2 =
CALCULATE (
COUNT ( 'Transaction'[Transaction ID] ),
USERELATIONSHIP ( Person[Name], 'Transaction'[Responsible for transaction 2/2] )
)
VAR vResult = vPerson1 + vPerson2
RETURN
vResult
Sample data:
Active relationship:
Inactive relationship:
Use Person[Name] in the matrix rows. The Person table is a list of all names.
Result:
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 20 | |
| 12 | |
| 11 |