9. Get Data from Folder: Monthly Bank Statements Walkthrough
Friends, in an office a new file arrives every month – Jan.xlsx, Feb.xlsx... Copy-paste every month? Not at all! In this module we combine monthly bank statements from one folder, and set it up so that a new file comes in automatically with a refresh.
मित्रांनो, office मध्ये दर महिन्याला नवीन file येते – Jan.xlsx, Feb.xlsx... दर महिन्याला copy-paste करायचं? अजिबात नाही! या module मध्ये आपण monthly bank statements एकाच folder मधून combine करू, आणि नवीन file टाकली की refresh ने आपोआप येईल अशी व्यवस्था करू.
दोस्तों, office में हर महीने नई file आती है – Jan.xlsx, Feb.xlsx... हर महीने copy-paste? बिल्कुल नहीं! इस module में हम monthly bank statements एक ही folder से combine करेंगे, और ऐसा इंतज़ाम करेंगे कि नई file डालते ही refresh से अपने-आप आ जाए.
What you will learn in this module
- Combining many files with the same structure from one folder
- What the helper queries (Parameter, Sample File, Transform Sample File, Transform File) do
- Cleaning bank-statement quirks: header rows, opening/closing lines, Dr/Cr, amounts with commas
- Getting the month from Source.Name, skipping hidden/temporary files
- Handling a file with an extra column or different headers
- Automatic refresh when next month's file is dropped in (local folder and SharePoint folder)
Live story: Twelve bank statements in one folder
Suppose we help a small Pune shop owner who sells on Swiggy and Blinkit. Every month the bank sends one CSV statement. After a year there are 12 files. We want one table of all 12 months, and next month's file should join by itself. This chapter uses Get Data from Folder to combine files once and refresh forever.
All numbers in this story are fictional practice data.
Live story: एका folder मध्ये बारा bank statements
समजा आपण Swiggy आणि Blinkit वर विकणाऱ्या Pune मधल्या एका छोट्या दुकानदाराला मदत करतोय. दर महिन्याला bank एक CSV statement पाठवते. वर्षानंतर 12 files होतात. आपल्याला सगळ्या 12 महिन्यांचा एक table हवाय, आणि पुढच्या महिन्याची file आपोआप जोडली गेली पाहिजे. हा chapter Get Data from Folder वापरून files एकदा combine करतो आणि मग कायम refresh.
या story मधले सगळे आकडे काल्पनिक practice data आहेत.
Live story: एक folder में बारह bank statements
मान लीजिए हम Swiggy और Blinkit पर बेचने वाले Pune के एक छोटे दुकानदार की मदद कर रहे हैं. हर महीने bank एक CSV statement भेजता है. साल भर में 12 files हो जाती हैं. हमें सारे 12 महीनों की एक table चाहिए, और अगले महीने की file अपने-आप जुड़ जानी चाहिए. यह chapter Get Data from Folder से files एक बार combine करता है और फिर हमेशा refresh.
इस story के सारे आँकड़े काल्पनिक practice data हैं.
Every month, Ravindra Bagale downloads his savings-account statement as an Excel file: Jan.xlsx, Feb.xlsx, Mar.xlsx … He wants one Power BI table with all transactions to track spending on Blinkit and Amazon Now, UPI transfers, ATM withdrawals and salary credits. The same technique works for monthly Blinkit order exports (Module 7.20).
Fictional data
The bank ("Example Bank"), account number, narrations, reference numbers and amounts below are invented for practice.
Concepts in this chapter
- 9.1The Files and Their Layout
- 9.2Connect to the Folder
- 9.3Filter Out Hidden, Temporary and Unwanted Files
- 9.4Combine Files and the Helper Queries
- 9.5Clean One File in Transform Sample File
- 9.6Add Month from Source.Name and Categorise Transactions
- 9.7A File with an Extra Column or Different Headers
- 9.8Automatic Refresh When a New Month Arrives
Review and practice
The chapter recap is at the end of the last concept page.
Ravi Sir's Cards: 10 revision, interview and comparison cards for this chapter · मराठी cards