I'm trying to get a pivot table that summarizes all the financial transactions flowing in and out of a specified account, by the related accounts. Put another way, give me a data set of all the records related to a specified account, then show those records in a pivot table summarized by account. Getting the desired data set is the hard part - presenting the data in a pivot table is the easy part. Put yet another way, show me the total accounting journal entry that would be necessary to record all activity in a particular account. This account "flows summary" is an excellent analysis tool lacking in most accounting software today. I can do this analysis in a database, but would like to do the same analysis using PowerPivot.
I have the following relationships and relevant columns:
CONTACT (dimension table to track customers, suppliers, employees, etc.)
id_contact (primary key)
contact_name
contact_drbalance=CALCULATE(SUM(detail[debit]),ledger)
contact_crbalance=CALCULATE(SUM(detail[credit]),ledger)
ACCOUNT (dimension table to track assets, liabilities, equity, revenue and expense accounts)
id_account (primary key)
account_name
account_drbalance=CALCULATE(SUM(detail[debit]),ledger)
account_crbalance=CALCULATE(SUM(detail[credit]),ledger)
JOURNAL (fact table to track transactions, i.e., double-entry bookkeeping journal entries)
id_journal (primary key)
id_contact (foreign key)
date
memo
reference
LEDGER (fact table to track transaction line items or details, i.e., the bridge table between JOURNAL & ACCOUNT as required by double-entry bookkeeping)
id_ledger (primary key)
id_journal (foreign key)
id_account (foreign key)
amount
comment
debit=IF(amount>0,amount,"")
credit=IF(amount<0,amount,"")
Any guidance please? For example, if I ran a pivot table on the Cash account, I would like to be able to see all the sources and uses of cash (flows in and out), summarized by the related accounts. Cash is just an example. I should be able to run a pivot table on any account which will show the flows in and out of its related records. Thank you!
I have the following relationships and relevant columns:
CONTACT (dimension table to track customers, suppliers, employees, etc.)
id_contact (primary key)
contact_name
contact_drbalance=CALCULATE(SUM(detail[debit]),ledger)
contact_crbalance=CALCULATE(SUM(detail[credit]),ledger)
ACCOUNT (dimension table to track assets, liabilities, equity, revenue and expense accounts)
id_account (primary key)
account_name
account_drbalance=CALCULATE(SUM(detail[debit]),ledger)
account_crbalance=CALCULATE(SUM(detail[credit]),ledger)
JOURNAL (fact table to track transactions, i.e., double-entry bookkeeping journal entries)
id_journal (primary key)
id_contact (foreign key)
date
memo
reference
LEDGER (fact table to track transaction line items or details, i.e., the bridge table between JOURNAL & ACCOUNT as required by double-entry bookkeeping)
id_ledger (primary key)
id_journal (foreign key)
id_account (foreign key)
amount
comment
debit=IF(amount>0,amount,"")
credit=IF(amount<0,amount,"")
Any guidance please? For example, if I ran a pivot table on the Cash account, I would like to be able to see all the sources and uses of cash (flows in and out), summarized by the related accounts. Cash is just an example. I should be able to run a pivot table on any account which will show the flows in and out of its related records. Thank you!