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 everyone!
I need some help at this situation:
I need to subtract row values from a total value to adjust the column1, the desired value is in column2:
Can someone help me?
Solved! Go to Solution.
@danielmorais Well, if everything are columns then that would be:
Column 2 = if([column1] - [balance] <= 0, 0, [column1] - [balance])
@danielmorais This would be the one for Balance, what is the logic for Column2???
Balance =
VAR __Total = 10000
VAR __Month = MAX('Table'[Month])
VAR __Table = FILTER(ALL('Table',[Month] <= __Month)
RETURN
__Total - SUMX(__Table,[Column1])
@danielmorais Well, if everything are columns then that would be:
Column 2 = if([column1] - [balance] <= 0, 0, [column1] - [balance])
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 |