Forum Discussion

elaine1217's avatar
elaine1217
Helper I
2 years ago
Solved

Dynamic Data Source - Excel Spreadsheet

Hello, I have had issues with dynamic data sources before, but the resolution I used last time isn't working for me this time around. 

 

I have a dashboard that uses a couple of Excel spreadsheets that are updated by many users; the location and file name changes fairly often, new versions are created, etc. This was becoming a real hassle as everytime a file name or location changed, the dashboard would fail refresh. To avoid this, I created a spreadsheet that users update that lists the filepath and file name for the most current version of each Excel. Then, in PowerBI I have queries that import each line of the Excel. 

 

This works fine in Desktop, but it is a dynamic data source and service won't allow refreshes, which is really necessary for this dashboard. I wanted to see if either a) anyone could help updating this query to make the source not dynamic or b) if anyone has a better solution they have found for when files change name/location often. 

 

Filtered Rows2 is the table listing each excel file's name, it's file path, file name, etc. For each query, i filter to a specific row then try to get the contents of the first row. The "Contents" step is what is causing the 'dynamic data source' error message. 

 

#"Filtered Rows2" = Table.SelectRows(#"Filtered Rows1", each ([Resource] = "Filter Value")),
Contents = Web.Contents(#"Filtered Rows2"{0}[FullPath])

 

Thanks for any insight or assistance!

3 Replies