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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
CheikhnaML
Frequent Visitor

Using drill down to make a dynamic path

Hi everybody and thank you for all the support you provide. 

I am not very advanced in using power bi destktop and the query editor. 

 

Here is my issue : 

I have some data that comes from a txt file called data. 

CheikhnaML_0-1630491808751.png

I uploaded this data in my power bi query editor. 

CheikhnaML_2-1630491953722.png

 

Then I want the upload to be dynamic, so I created an excel file called "masterfile" that has a named range called "fileName". 

CheikhnaML_1-1630491880975.png

 

 

Then I uploaded this named range into my query editor and used "drill down" to have the value and I called in "FileName"

CheikhnaML_3-1630492007647.png

 

 

 

I replaced the static path inside my M formula with "FileName" that I just created, whose value is the same than the static value. 

But it does not work. Here is the error message that I get

 

CheikhnaML_4-1630492040910.png

 

 

 

 

I attached both files for better understanding. 

 

Thank you in advance. 

1 ACCEPTED SOLUTION

@mahoneypat Thanks for your answer. 

It had already removed the double quotes but it didn't work. 

I eventually found the solution : maybe it might help someone in the future : 

 

To resolve this error, change the privacy settings in the query editor by going to File/Query and options / Query options / Current file / Privacy / Select "ignore the privacy levels and potentially improve perofomance". 

 

Best regards

View solution in original post

6 REPLIES 6
CheikhnaML
Frequent Visitor

@mahoneypat have you had the time to look up my previous comment ? Thank you for your help

Your syntax looks correct.  Make sure the output of your FileName query looks like this in the query editor (no double quotes around it).

 

mahoneypat_0-1630669706260.png

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


@mahoneypat Thanks for your answer. 

It had already removed the double quotes but it didn't work. 

I eventually found the solution : maybe it might help someone in the future : 

 

To resolve this error, change the privacy settings in the query editor by going to File/Query and options / Query options / Current file / Privacy / Select "ignore the privacy levels and potentially improve perofomance". 

 

Best regards

Anonymous
Not applicable

Thanks for sharing!

mahoneypat
Microsoft Employee
Microsoft Employee

In your second picture, it looks like your FilePath text is actually being used as the column header (not the first row).  You need to change that query so that the you see text instead of the empty list you are seeing.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks for the reply. 

I did that and now I have this in my filename : 

CheikhnaML_1-1630513423080.png

But is still doesn't work, as when I replace the static filepath in my formula by "FilePath", this is the error message that I get : 

CheikhnaML_2-1630513505538.png

Thanks in advance for your help

 

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.