I am trying to create a cash flow report which should summarize transactions made in several bank accounts. Every bank account has a separate tab and a different layout, these transactions are uploaded on a regular basis so the data is changing regularly.
I'd like to create a Pivot table, but in order to do so, I should combine all the tabs into one tab with a unified layout and also extract the tab (name with the bank account name). The "unified table" should consist of the following columns/headers - Date; Amount; Category; Reference; Tab (sheet) Name. The table should be sorted by date. Once I have the table prepared, I'll stream this data to a dynamic dashboard.
How would you recommend doing it?
Here is a link to the sample file - https://docs.google.com/spreadsheets/d/10dXvOIr4vcL6M2UARUxfi88QKDaBCREuW5ca4kOqpQE/edit?usp=sharing
Any help would be greatly appreciated, thanks
I tried to do it using query function but couldn't choose different columns from each sheet to be extracted since on every sheet Col# contains different data. I managed only to extract each column separately (date, amount, etc) but then, the columns received were not synched, so it contains errors.

Use
vstack()and friends, like this:See the Solution tab, and let(), lambda(), vstack(), hstack(), choosecols() and filter().