We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I have a PBI report which shows a monthly project details based on the excel files that the team uses on a monthly basis. The data source has:
- Monthly folder (Example, "12- December", "11 November", etc)
-Under each monthly folder there are monthly files ("12- Project list data.xlsx", "11- Project list data.xlsx", etc.)
I want to automate the data source path so that it takes the data from the current month folder and file. So for December, the source path should be "c\.....12-December\12- Project list data.xlsx".
Is it possible to have a dynamic path so that I do not need to change the source path every month?
Solved! Go to Solution.
Hi @Anonymous
Do you have multiple years of monthly folders in the root folder? I see you only have Month number and name in the folder name without year, so I'd like to know whether "1-January" folder only includes the file for the current 2023 January? If so, you can try
= Excel.Workbook(File.Contents("C:\........root folder\" & Text.From(Date.Month(DateTime.LocalNow())) & "-" & Date.MonthName(DateTime.LocalNow()) & "\" & Text.From(Date.Month(DateTime.LocalNow())) & "-Project list data.xlsx"), null, true)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @Anonymous
Do you have multiple years of monthly folders in the root folder? I see you only have Month number and name in the folder name without year, so I'd like to know whether "1-January" folder only includes the file for the current 2023 January? If so, you can try
= Excel.Workbook(File.Contents("C:\........root folder\" & Text.From(Date.Month(DateTime.LocalNow())) & "-" & Date.MonthName(DateTime.LocalNow()) & "\" & Text.From(Date.Month(DateTime.LocalNow())) & "-Project list data.xlsx"), null, true)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |