Forum Discussion
Anonymous
4 years agoNot applicable
Issue with refund calculation per month
Hi all, I'm pretty new to power bi. I need to calculate some refunds for my boss, but can't get the right calculation. I have a table (Sheet1) with billing type (credit(refund) and invoice(turnover...
smpa01
Community Champion
4 years agoAnonymous please try
Refund% =
VAR _credit =
CALCULATE (
SUM ( Sheet1[EUR sales] ),
FILTER ( VALUES ( Sheet1[Billing type] ), Sheet1[Billing type] = "Credit Memo" )
)
VAR _invoice =
CALCULATE (
SUM ( Sheet1[EUR sales] ),
ALL ( Sheet1[Billing month] ),
Sheet1[Billing type] IN { "Invoice" }
)
RETURN
DIVIDE ( _credit, _invoice )
- Anonymous4 years agoNot applicable
Unfortunatly I didn't receive a different result (Refund %2 = your formula)