Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have to load to Power Bi an excel that is located in Sharepoint.
For example, the path is this:
https://example.sharepoint.com/sites/group/Shared Documents/General/PLANIFICACION/T3G_PLA_CdM_Planificacion-1234.xlsx
The problem is that the bold font part of the xlsx file name changes with the time.
For example, today this file can name T3G_PLA_CdM_Planificacion-1234.xlsx, but tomorrow it can be T3G_PLA_CdM_Planificacion-8541.xlsx
I have tried using the path with regular expression like this but it doesnt work:
https://example.sharepoint.com/sites/group/Shared Documents/General/PLANIFICACION/T3G_PLA_CdM_Planificacion-.*.xlsx
I need to say to Power Bi that get the data that begins with T3G_PLA_CdM_Planificacion- ignoring the last caracters.
Is there any way to do that?
Thank you in advance
Regards
Solved! Go to Solution.
Hi, @lmfernandez
Do you want to get the latest date data based on the file name? If so, you can set parameters in PQ to customize the file name.
Like this:
After setting, you can manually select the file name you want.
If you still have problems, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @lmfernandez
Do you want to get the latest date data based on the file name? If so, you can set parameters in PQ to customize the file name.
Like this:
After setting, you can manually select the file name you want.
If you still have problems, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
There are a few ways to do that. Are the files from the previous day still there? Here are two suggestions:
1. Use a Power Automate flow that is triggered when a new file is created, renaming the new file and then pointing Power BI at the file with that name.
2. You can sort your query off the created date of the file, or you can use the Table.MaxN function to keep the top one in terms of created date.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |