I’ve been struggling a couple of days with the calculation of walletbalances in Power BI.
We are working with customers who have a so called “Wallet”.
In the first worksheet you will find all the data:
Timeperiod = Year/Month
ClientId = ClientID
Balance_start_period = The startbalance of the wallet
Revenue - Purchases, normally “Balance Out” but it is possible to have a “Balance In” if the purchase has failed.
Payments = Payments (= Balance In)
Cashback = In certain circumstances a customer receives a cashback (=Balance In).
Balance_end_period = The endbalance of the wallet
Worksheet 2 t/m 6: calculations in Excel of the different customers.
Additional information for Cashback:
Revenue Cashback: if Revenue < 0 then Revenue else 0.
Endbalance Cashback: If (startbalance CB + Revenue Cashback + Cashback) < 0 then 0 else (Startbalance CB + Revenue Cashback + Cashback)
It is possible to have a wallet < 0, those are Accounts Receivable Customers.
Can someone help me to do the Excel-calculations in Power BI?
Thanks in advance,
Greetings from Holland,
It seems that you may just add custom column in Query Editor.
I have made a few columns in the Query Editor.
The problem is the calculation of the endbalance of the cashbacks, see picture.
For example ClientID 699, 2018 September gives 0,30, in October there are no transactions, so the endbalance needs still to be 0,30 and not 0,00. Can you help me with the formula for calculating the correct endbalance?