Forum Discussion

matal4's avatar
matal4
New Member
9 years ago
Solved

Sum by distinct period

Hello,

I have the following dataset, where column "No of transactions per co-worker" is just simply "Transactions" divided by "Co-workers":

 

PeriodTeamTransactionsCo-workersNo of transactions per co-worker
Sep-17Team A8001080
Sep-17Team B200019105
Sep-17Team C25002696
Oct-17Team A110011100
Oct-17Team B220021105
Oct-17Team C290029100

 

What I would like to get is a table, where I can calculate sum of all transactions per month by sum of all co-workers per month:

PeriodTransactionsCo-workersNo of transactions per co-worker
Sep-1753005596
Oct-17620061102

 

Do you happen to know if there is any quick fix in DAX I could use to calculate it?

  • You need a measure

     

     

    TransPerWorker = ROUND(DIVIDE( SUM(Transactions[Column2]);SUM(Transactions[Column3]);0);0)

     

    then just put it in a Matrix to aggregate: 

2 Replies

  • You need a measure

     

     

    TransPerWorker = ROUND(DIVIDE( SUM(Transactions[Column2]);SUM(Transactions[Column3]);0);0)

     

    then just put it in a Matrix to aggregate: 

    • matal4's avatar
      matal4
      New Member

      Thanks, that is exactly what I needed!