Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I have the following dataset, where column "No of transactions per co-worker" is just simply "Transactions" divided by "Co-workers":
Period | Team | Transactions | Co-workers | No of transactions per co-worker |
Sep-17 | Team A | 800 | 10 | 80 |
Sep-17 | Team B | 2000 | 19 | 105 |
Sep-17 | Team C | 2500 | 26 | 96 |
Oct-17 | Team A | 1100 | 11 | 100 |
Oct-17 | Team B | 2200 | 21 | 105 |
Oct-17 | Team C | 2900 | 29 | 100 |
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:
Period | Transactions | Co-workers | No of transactions per co-worker |
Sep-17 | 5300 | 55 | 96 |
Oct-17 | 6200 | 61 | 102 |
Do you happen to know if there is any quick fix in DAX I could use to calculate it?
Solved! Go to Solution.
You need a measure
TransPerWorker = ROUND(DIVIDE( SUM(Transactions[Column2]);SUM(Transactions[Column3]);0);0)
then just put it in a Matrix to aggregate:
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!
User | Count |
---|---|
97 | |
88 | |
76 | |
70 | |
63 |
User | Count |
---|---|
112 | |
96 | |
95 | |
67 | |
65 |