Forum Discussion
lcasey
Post Prodigy
9 years agoUse a calendar table for Invoices and Payments
Hello, I cant beleive I have not found a solution on the web for this extreemly common request. I am hoping someone in here may have a solution. I have 3 tables. A calendar table an Invoice ...
v-ljerr-msft
Microsoft Employee
9 years agoHi lcasey,
Could you try using the formula below to create a measure to see if it works in your scenario? :smileyhappy:
Balance =
SUM ( '00-Bad Debt - Invoices'[SLSAMNT] )
- CALCULATE (
SUM ( '00-Bad Debt - Payments'[APPTOAMT] ),
FILTER (
ALL ( '00-Bad Debt - Payments' ),
'00-Bad Debt - Payments'[DATE1] IN VALUES ( Calendar[Date] )
)
)
Regards
lcasey
Post Prodigy
9 years agoHello,
Unfortunatly, that didnt work. The Balances are all wrong. I used your formula in the BalanceTest measure.