Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to calculate change of balance sheet items over time?

I would like to calculate the change of balance sheet items. For example change of total asset:
( total_asset current_reported_value - total_asset_previous reported value) / (total_asset_previous reported value). When I use pipleline to calculate the data, the windowlength is based on date, but in this case, I want the window_length to be based reporting period.

Thanks.

2 responses

I believe using the returns factor works out
i.e. Returns(inputs = [morningstart.balance_sheet.item],window_length = 63) for quarterly change

I plotted the total asset and the change calculated by your Return factor method. The 63 window_length will give you some weird values due to the difference of the reporting date.
Is there a way to get previous reported value directly through pipeline.