├── README.md └── downloads ├── 03. Financial Reports.pbix ├── Archive ├── 01_P&L_ParentChild.pbix ├── 02_P&L_CustomM2M.pbix ├── 03. Balance Sheet.pbix ├── AdventureWorksDW2017.bak ├── P&l Specxlsx.xlsx └── glRules.xlsx └── Files ├── Account.xlsx ├── AccountRangeRules.xlsx ├── Calendar.xlsx ├── DepartmentGroup.csv ├── Injections2.sql ├── Organisation.xlsx ├── Scenario.xlsx ├── Statement.xlsx ├── Transactions.csv └── Transactions_Basic.csv /README.md: -------------------------------------------------------------------------------- 1 | # Financial Modeling with PowerBI 2 | For my session in SQL bits on Financial Modelling in PowerBI there are couple of useful downloads if you want to follow or dissect at home. 3 | 4 | https://events.sqlbits.com/2023/agenda 5 | 6 | * Updated 12/03/2023 PowerBI PBIX with P&L, Balance Sheet and Cash Flow from AdventureWorks 7 | https://github.com/ProdataSQL/FinancialModelling/blob/main/downloads/03.%20Financial%20Reports.pbix 8 | 9 | * AdventureWorksDW2017 10 | This data warehouse has an albeit basic data warehouse version of an accounting table and Account Dimension, so good to use as a demo and starting point.
11 | https://github.com/Microsoft/sql-server-samples/releases/download/adventureworks/AdventureWorks2017.bak 12 | 13 | * PowerBI Report using “Parent Child” Chart of Accounts 14 | https://github.com/ProdataSQL/FinancialModelling/blob/main/downloads/Archive/01_P%26L_ParentChild.pbix 15 | 16 | * Sample Files to import into PowerBI with General Ledger and Transactions 17 | https://github.com/ProdataSQL/FinancialModelling/tree/main/downloads/Files 18 | 19 | * Sample Business Rules spreadsheet for mapping GL Codes to reports 20 | https://github.com/ProdataSQL/FinancialModelling/blob/main/downloads/Archive/glRules.xlsx 21 | 22 | Feel free to download. I've already had people confirm thye got this desing pattern working on a good few popular ERPs like SAP, M3, Dyanmics 23 | 24 | 25 | -------------------------------------------------------------------------------- /downloads/03. Financial Reports.pbix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/03. Financial Reports.pbix -------------------------------------------------------------------------------- /downloads/Archive/01_P&L_ParentChild.pbix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Archive/01_P&L_ParentChild.pbix -------------------------------------------------------------------------------- /downloads/Archive/02_P&L_CustomM2M.pbix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Archive/02_P&L_CustomM2M.pbix -------------------------------------------------------------------------------- /downloads/Archive/03. Balance Sheet.pbix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Archive/03. Balance Sheet.pbix -------------------------------------------------------------------------------- /downloads/Archive/AdventureWorksDW2017.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Archive/AdventureWorksDW2017.bak -------------------------------------------------------------------------------- /downloads/Archive/P&l Specxlsx.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Archive/P&l Specxlsx.xlsx -------------------------------------------------------------------------------- /downloads/Archive/glRules.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Archive/glRules.xlsx -------------------------------------------------------------------------------- /downloads/Files/Account.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Files/Account.xlsx -------------------------------------------------------------------------------- /downloads/Files/AccountRangeRules.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Files/AccountRangeRules.xlsx -------------------------------------------------------------------------------- /downloads/Files/Calendar.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Files/Calendar.xlsx -------------------------------------------------------------------------------- /downloads/Files/DepartmentGroup.csv: -------------------------------------------------------------------------------- 1 | DepartmentGroupKey,ParentDepartmentGroupKey,DepartmentGroupName 2 | 1,,Corporate 3 | 2,1,Executive General and Administration 4 | 3,1,Inventory Management 5 | 4,1,Manufacturing 6 | 5,1,Quality Assurance 7 | 6,1,Research and Development 8 | 7,1,Sales and Marketing 9 | -------------------------------------------------------------------------------- /downloads/Files/Injections2.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20120131,3,1,1,43,-9150113,'20120131 ') 2 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20120229,3,1,1,43,-9580598,'20120229 ') 3 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20120331,3,1,1,43,-8560068,'20120331 ') 4 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20120430,3,1,1,43,-8800352,'20120430 ') 5 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20120531,3,1,1,43,-7771024,'20120531 ') 6 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20120630,3,1,1,43,-6910367,'20120630 ') 7 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20110731,3,1,1,43,-4428989,'20110731 ') 8 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20110831,3,1,1,43,-9748669,'20110831 ') 9 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20110930,3,1,1,43,-4466185,'20110930 ') 10 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20111031,3,1,1,43,-5566584,'20111031 ') 11 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20111130,3,1,1,43,-4399617,'20111130 ') 12 | INSERT INTO FactFinance (DateKey, OrganizationKey, DepartmentGroupKey, ScenarioKey, AccountKey, Amount, Date) VALUES (20111231,3,1,1,43,-10387811,'20111231 ') 13 | 14 | 15 | select MAX(financeKey) from FactFinance 16 | 17 | --(No column name) 18 | --40407 19 | 20 | --40419 21 | 22 | 23 | delete From FactFinance where FinanceKey > 40191 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /downloads/Files/Organisation.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Files/Organisation.xlsx -------------------------------------------------------------------------------- /downloads/Files/Scenario.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Files/Scenario.xlsx -------------------------------------------------------------------------------- /downloads/Files/Statement.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProdataSQL/FinancialModelling/3de73a0cfba7e77d7e142605b050141c251b8043/downloads/Files/Statement.xlsx --------------------------------------------------------------------------------