Forum Discussion

HB2104's avatar
HB2104
Icon for Helper I rankHelper I
3 years ago

Cash Flow in Power BI

Hello All -

 

I am looking for a solution on the best way to show cash flow in PBI. Disregarding AR at the moment, I have the bank balances, AP due totals. I also need to take into account the company codes and currency. I am thinking this needs to be a type of "if statement" solution but not sure. Any ideas helpful. Below is sample data.

 

If statement piece, if the currency is X and the company code is Y then AP payment comes out of this bank number:

Company CodeCurrencyBank Payment comes from
LOMBGBP123
LOMBUSD1234
LOMBEUR and all others12345
KHLTUSD123456
KHLTEUR1234566
KHLTGBP and all others exc. USD and EUR12345678

 

AP Data examples:

 

Company CodeDue Date Amount  Currency
LOMB17.04.2012 $     (480.00)GBP
LOMB17.04.2012 $     (180.00)USD
LOMB17.04.2012 $     (150.00)USD
LOMB06.08.2012 $     (100.00)GBP
LOMB07.12.2012 $       (95.25)GBP
LOMB08.02.2013 $         85.00USD
LOMB12.02.2013 $       (17.27)GBP
LOMB20.03.2013 $         60.00GBP
LOMB17.04.2013 $ (2,000.00)GBP
LOMB30.04.2013 $     (125.30)GBP
 KHLT17.05.2013 $     (100.00)GBP
 KHLT17.05.2013 $     (105.22)GBP
 KHLT19.07.2013 $       (88.24)USD
 KHLT25.07.2013 $       (12.85)GBP
 KHLT09.08.2013 $     (810.00)GBP
 KHLT07.10.2013 $       (51.52)GBP
 KHLT25.10.2013 $       (81.97)GBP
 KHLT30.10.2013 $     (180.00)GBP
 KHLT01.11.2013 $       118.86USD

2 Replies