Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
Would anyone know how to retrieve in power query language M the name of the spreadsheet hosting a given table? For exemple, let us assume i have a table named "Sales_Per_Region" on "tab1" spreadsheet, how can I ask power query to return "tab1" as the OUTPUT with "Sales_Per_Region" as an INPUT?
Thank you
Antoine
Solved! Go to Solution.
Power Query by itself can't do it unfortunately.
But there are some work-around you may find useable:
I found chat-gpt very helpful in writing the functions specific to my situation.
I ended up not using any of these methods because of all the downsides, so I can't share my solution with you...
Power Query by itself can't do it unfortunately.
But there are some work-around you may find useable:
I found chat-gpt very helpful in writing the functions specific to my situation.
I ended up not using any of these methods because of all the downsides, so I can't share my solution with you...
Thank you very much for your detailed answer and multiple suggestions of solution!
You're welcome. What solution did you go for?