Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Reply
Anonymous
Not applicable

Using Query Value in Label

hi

 

i have a Query that captures the file location of a file used.  I would like to extract the filename ONLY and put that in a label (measure?) on the Dashboard.  

cnorris3570_0-1647281756724.png

 

so if the filename was Test.xlsx (i scratched out the real name in the image), i would like to add this name to a label as the name of the Dashboard report.  I dont want the long URL, just the filename also without the .xlsx.

please let me know how i can do this either thru Power Query or DAX.

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

You can try to get data->folder in powerbi desktop and then use extract function in power query to separate out the file names.

vhenrykmstf_0-1647485085188.png

vhenrykmstf_1-1647485387055.png

vhenrykmstf_2-1647485419859.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

You can try to get data->folder in powerbi desktop and then use extract function in power query to separate out the file names.

vhenrykmstf_0-1647485085188.png

vhenrykmstf_1-1647485387055.png

vhenrykmstf_2-1647485419859.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

Anonymous
Not applicable

thank you sir.... i will try this...

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.