Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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])
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |