Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello, I have a dataset like this
index number amount balance
1 10775 10 10
2 10775 -10 0
3 10775 20 20
4 10775 -20 0
5 10775 10 10
6 10775 10 20
7 10775 10 30
8 10776 10 10
9 10776 10 20
10 10776 -10 10
11 10776 10 20
I would like to get the Number of column balance acumulated by number group.
Thanx in advance for help
@geerduran , New measure
calculate(sum(Table[amount]) , filter(allselected(Table), table[number] = max(table[number]) && table[index] = max(table[index])))
new column
sumx( filter(Table, table[number] = earlier(table[number]) && table[index] = earlier(table[index])),Table[amount])
Thanks @amitchandak , but balance is same as amount with new column code
index number amount balance
1 10775 10 10
2 10775 -10 -10
3 10775 20 20
4 10775 -20 -20
5 10775 10 10
6 10775 10 10
7 10775 10 10
8 10776 10 10
9 10776 10 10
10 10776 -10 -10
11 10776 10 10
Did I write something wrong?
This is an answer
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |