Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
adhumal2
Helper III
Helper III

Dashboard Refresh with new files with month name

Dear Experts,

 

I am creating a dashboard wherein I need below support

 

- How can I define the path of the folder from where the dashboard will automatically pick the data? Whenever I add a file in folder and refresh the database, the dashboard should  get updated.

 

- The dashboard should pick the month name and year from Excel file name which i add into the folder 

 

Is there any link to any document/article/video in which this has been explained in easy terms?

 

Many Thanks in advance.!

 

2 ACCEPTED SOLUTIONS
mahoneypat
Microsoft Employee
Microsoft Employee

Please see this video on how to combine files from a folder.  You are able to keep the filename, and if you've named them consistently (e.g., Month_YYYY), you can parse the file name to create a date column if needed.  For refresh, you can set up scheduled refresh from the Power BI service, or you can set up a Flow to refresh your dataset when a file is added (if the frequency of that is less than your refresh limit).

 

https://www.youtube.com/watch?v=9sfCDCpWTfc

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

v-diye-msft
Community Support
Community Support

Hi @adhumal2 

 

Kindly refer to documents:

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-combine-binaries 

https://powerbi.tips/2016/06/loading-data-from-folder/ 

More reference:

https://medium.com/@wkrzywiec/passing-source-folder-path-as-parameter-to-query-code-in-power-query-1... 

https://powerbi.tips/2016/08/using-variables-for-file-locations/ 

 

If you published the pbix into service and manage the gateway. the file would be refreshed on-demand/scheduled. kindly refer to:

https://powerbi.microsoft.com/en-us/blog/refresh-for-on-premises-sources-is-here/ 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @adhumal2 

 

Kindly refer to documents:

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-combine-binaries 

https://powerbi.tips/2016/06/loading-data-from-folder/ 

More reference:

https://medium.com/@wkrzywiec/passing-source-folder-path-as-parameter-to-query-code-in-power-query-1... 

https://powerbi.tips/2016/08/using-variables-for-file-locations/ 

 

If you published the pbix into service and manage the gateway. the file would be refreshed on-demand/scheduled. kindly refer to:

https://powerbi.microsoft.com/en-us/blog/refresh-for-on-premises-sources-is-here/ 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
mahoneypat
Microsoft Employee
Microsoft Employee

Please see this video on how to combine files from a folder.  You are able to keep the filename, and if you've named them consistently (e.g., Month_YYYY), you can parse the file name to create a date column if needed.  For refresh, you can set up scheduled refresh from the Power BI service, or you can set up a Flow to refresh your dataset when a file is added (if the frequency of that is less than your refresh limit).

 

https://www.youtube.com/watch?v=9sfCDCpWTfc

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


@mahoneypat@v-diye-msft  Hi Pat and V-diye, Many Thanks!

 

How can I parse the month name and year and create the column in the query for Month Name/Year or Date?

I have file names like 

 - EPD Report - Mar 2020

- EPD Report - Jan 2019

 

Your help is highly appreciated.

Here is one way to convert those filenames to dates.

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W0lVwDXBRCEotyC8qUdBV8E0sUjAyMDJQitWJVgITaAq8EvOACgwtlWJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Filename = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Filename", type text}}),
#"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([Filename] <> "")),
#"Extracted Text After Delimiter" = Table.TransformColumns(#"Filtered Rows", {{"Filename", each Text.AfterDelimiter(_, "-", {0, RelativePosition.FromEnd}), type text}}),
#"Trimmed Text" = Table.TransformColumns(#"Extracted Text After Delimiter",{{"Filename", Text.Trim, type text}}),
#"Added Custom" = Table.AddColumn(#"Trimmed Text", "DateFromFilename", each "01-"&Text.BeforeDelimiter([Filename]," ")&"-"&Text.AfterDelimiter([Filename]," ")),
#"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"DateFromFilename", type date}})
in
#"Changed Type1"

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors