Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple colums for balance #8

Open
TiborUdvari opened this issue Feb 27, 2019 · 2 comments
Open

Allow multiple colums for balance #8

TiborUdvari opened this issue Feb 27, 2019 · 2 comments

Comments

@TiborUdvari
Copy link

My bank statements have one column for deposits and one for withdrawals.
The withdrawals are marked as negative numbers. It would be elegant to be able to set --balance=1,2 for example for this use case, as is for the longtext argument.

@mrVanDalo
Copy link
Owner

Hey @TiborUdvari sorry for the long delay.

So you have a CSV with a colum deposit and a colum withdraw. And one of the columns is always 0 and the other one holds a number which is always negative in the withdraw column and always positive in the deposit column?

If so you could pre-process your csv using miller.

mlr --icsv --opprint put '$balance = $deposit + $withdraw' ./test.csv 

and than simply use the balance column.

I will don't really have time right now to fulfill your request, (maybe in some month, but this fix might help you till than)

@TiborUdvari
Copy link
Author

TiborUdvari commented Apr 1, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants