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! Request now
Hi Guys, how are you?
I'm having problems in calculating a new column to show a balance account with tax (the tax is 0.01%) accumulated day by day.
The table that I have:
| Day | People | Ins | Outs |
| 16 | P1 | 1000 | |
| 20 | P1 | 500 | 5 |
| 16 | P2 | 850 | 50 |
| 20 | P2 | 30 |
with the column I need (it cam be measure, I don't mind)
| Day | People | Ins | Outs | RESULT |
| 16 | P1 | 1000 | 1000,10 | |
| 20 | P1 | 500 | 5 | 1495,55 |
| 16 | P2 | 850 | 50 | 800,08 |
| 20 | P2 | 30 | 830,40 |
Ty guys!!
Solved! Go to Solution.
@Anonymous
Ohh sorry, a small mistake.
RESULT =
VAR FixedTax = 0.0001
VAR CurrentDay = 'Table'[Day]
VAR CurrentPersonTable =
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[People] ) )
VAR TableOnAndBefore =
FILTER ( CurrentPersonTable, 'Table'[Day] <= CurrentDay )
RETURN
SUMX ( TableOnAndBefore, ( 'Table'[Ins] - 'Table'[Outs] ) * ( 1 + FixedTax ) )
Hi @Anonymous
please try calculated column
RESULT =
VAR FixedTax = 0.0001
VAR CurrentDay = 'Table'[Day]
VAR CurrentPersonTable =
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[People] ) )
VAR TableOnAndBefore =
FILTER ( CurrentPersonTable, 'Table'[Day] <= CurrentDay )
RETURN
SUMX ( TableOnAndBefore, ( 'Table'[Ins] - 'Table'[Outs] ) * FixedTax )
Hi @tamerj1, Thank you for your replay, but, in this case, I the column "RESULT" brings only the difference and I need the value complete. Can you help me?
@Anonymous
Ohh sorry, a small mistake.
RESULT =
VAR FixedTax = 0.0001
VAR CurrentDay = 'Table'[Day]
VAR CurrentPersonTable =
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[People] ) )
VAR TableOnAndBefore =
FILTER ( CurrentPersonTable, 'Table'[Day] <= CurrentDay )
RETURN
SUMX ( TableOnAndBefore, ( 'Table'[Ins] - 'Table'[Outs] ) * ( 1 + FixedTax ) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 21 | |
| 10 | |
| 8 | |
| 8 |