The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
So I have a PBI file where the data source is retrieved from a folder contains excel files. Each excel file consists of multiple sheets(A, B, C etc.) which need to be transformed beforehand in the query (Transform sample file), before they are combined into a single Table.
My process:
Source from folder -> Select sheet (for ex. A) -> combine and transform -> Transform Sample file (cleaning data in order to combine them)
I perform this process for all the required sheets (B,C etc.) and then merge all the resultant tables from their respective sheets into one.
This process takes a lot of time to refresh and process.
Is there an m-code through which I can extract all the respective files in the folder, perform the cleaning for the respective sheets in lesser steps?
I am trying to improve the efficiency of my query!
Would really appreciate the help! Thanks.
The secret is to use the extract function.