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
ValeriaBreve
Post Partisan
Post Partisan

Power Query: return self (this) query name

Hello,

is there a way to determine the name of a query from the query itself?

 

Thanks!

Kind regards

Valeria

 

2 REPLIES 2
Anonymous
Not applicable

Hi @ValeriaBreve ,

 

That's not possible, unfortunately. 
The alternative workaround is to use the import from folder method for your queries. Then you would be able to use the original file name for it automatically.

vstephenmsft_0-1724824854801.png

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Ahmedx
Super User
Super User

Is this what you are looking for?

 

https://radacad.com/get-list-of-queries-in-power-bi

 

Screenshot_3.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.