Opining balance with custom report

Dear accountants.
How can I create a custom report with the opening balances for a previous period?

You cannot. Custom reports are based on ledger transactions. Opening balances would represent processed data from prior transactions.