Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Balanço =
VAR DataAtual = MAX('CR - Saldo'[Data])
VAR _PagoAcum =
CALCULATE( [Diferença],
FILTER(
ALLSELECTED('CR - Saldo'),
'CR - Saldo'[Data] <= DataAtual))
RETURN [Saldo] + _PagoAcum
This formula calculates the accumulated balance each day, what formula should I use to bring the balance from the previous day to the informed?
Solved! Go to Solution.
If I understand correctly, you are asking for the previous day's balance.
If that's the case, I made a change to your measure:
Previous Day Balanço =
VAR _DataAtual = MAX( 'CR - Saldo'[Data] )
VAR _Yesterday = _DataAtual - 1
VAR _PagoAcum =
CALCULATE(
[Diferença],
FILTER(
ALLSELECTED( 'CR - Saldo' ),
'CR - Saldo'[Data] <= _Yesterday
)
)
RETURN
[Saldo] + _PagoAcum
Can you show the definitions for these measures?
[Diferença]
[Saldo]
I hope my initial assumption was correct. Let me know.
Note that we have a data filter (highlighted in red) that requires the SALDO (Saldo = Balance) value to be one day earlier than that reported in the data filter Ex in the filter is from 01/23/2024 to 01/31/2024, that is, the value of the SALDO would have to be from 01/30/2024
If I understand correctly, you are asking for the previous day's balance.
If that's the case, I made a change to your measure:
Previous Day Balanço =
VAR _DataAtual = MAX( 'CR - Saldo'[Data] )
VAR _Yesterday = _DataAtual - 1
VAR _PagoAcum =
CALCULATE(
[Diferença],
FILTER(
ALLSELECTED( 'CR - Saldo' ),
'CR - Saldo'[Data] <= _Yesterday
)
)
RETURN
[Saldo] + _PagoAcum
Can you show the definitions for these measures?
[Diferença]
[Saldo]
I hope my initial assumption was correct. Let me know.
Hi
Your assumption is right
The objective of [Diferença] is my values of amount you moved in the cash, which will then be deducted from the balance
[Saldo] = Balance
@Rafael_Batista_
Please provide more details and explain with some sample data and the expected results if possible.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |