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
Please help! How can I use DAX to solve a simple excel task!
I know the values in column A and the first Sum 1000 and need to calculate the Sum for each value in column A
    B           C
1 %       Sum
2 2,0%  1000
3 3,5%   965
4 3,0%   936,05
C3=C2-B2*C2
C4=C3-B3*C3 etc.
Thanks!
 
					
				
		
Calculated column
@agolumeste , assume you have sequence in column A that can be used then try like
sumx(filter(Table, [A] =earlier([A]) -1),earlier([C]) - (earlier([C]) *earlier([B])))
or
sumx(filter(Table, [A] =earlier([A]) -1),([C]) - (([C]) *([B])))
or add an index column like
https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
Thanks for help!
I can't use the EARLIER function because I calculate a column that doesn't exist yet.
 
					
				
				
			
		
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 | |
| 10 | |
| 9 |