Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a table that looks like this and I need to make another table that sums up the amounts for each person.
name amount
bob 10
joe 5
mike 7
bob 5
mike 2
I need the equivalent of this SQL code:
SELECT name, sum(amount) from Table group by name;
which would give this result:
name amount
bob 15
joe 5
mike 9
Thanks in advanced.
Solved! Go to Solution.
Hello @Anonymous
Give this a try.
Table2 = ADDCOLUMNS ( SUMMARIZE('Table','Table'[name]), "Amount",CALCULATE(SUM('Table'[amount])) )
Hello @Anonymous
Give this a try.
Table2 = ADDCOLUMNS ( SUMMARIZE('Table','Table'[name]), "Amount",CALCULATE(SUM('Table'[amount])) )
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |