Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
matal4
New Member

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?

1 ACCEPTED SOLUTION
cs_skit
Resolver IV
Resolver IV

You need a measure

 

 

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

 

then just put it in a Matrix to aggregate: 

View solution in original post

2 REPLIES 2
cs_skit
Resolver IV
Resolver IV

You need a measure

 

 

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

 

then just put it in a Matrix to aggregate: 

Thanks, that is exactly what I needed!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.