Forum Discussion
Anonymous
6 years agoNot applicable
Count measure in Matrix
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 sta...
DataInsights
Super User
6 years agoAnonymous, 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: