BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft PL-300 Exam - Topic 2 Question 69 Discussion

Posted by Nickole on Jul 07, 2025 at 05:32 AM

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen,

You create a parameter named DataSourceExcel that holds the file name and location of a Microsoft Excel data source.

You need to update the query to reference the parameter instead of multiple hard-coded copies of the location within each query definition.

Solution: In the Power Query M code, you replace references to the Excel file with DataSourceExcel.

Does this meet the goal?

Suggested Answer: A

Instead modify the source step of the queries to use DataSourceExcel as the file path.

Note: Parameterising a Data Source could be used in many different use cases. From connecting to different data sources defined in Query Parameters to load different combinations of columns.


https://www.biinsight.com/power-bi-desktop-query-parameters-part-1/

Get Premium PL-300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
CH
Chun 11 months ago
Wait, can you really just replace all those references like that?
MA
Malika 11 months ago
Totally agree, makes it way easier to manage.
TI
Tina 12 months ago
Not sure if that's the best approach, though.
DA
Dalene 12 months ago
Yup, that's how you avoid hard-coding issues!
OL
Oliva 12 months ago
That's a solid way to streamline the queries!
PA
Pansy 1 year ago
I feel like this is similar to another question we did, and I think using the parameter should work as intended.
LE
Leonie 1 year ago
I'm a bit confused. I remember something about needing to ensure all queries reference the parameter correctly, but what if one doesn't?
SA
Samira 1 year ago
This reminds me of a practice question where we had to use parameters in Power Query. I believe this solution does meet the goal.
BR
Brande 1 year ago
I think replacing the hard-coded references with the parameter is the right approach, but I'm not entirely sure if it covers all scenarios.
CH
Chun 1 year ago
Wait, what do they mean by "you will NOT be able to return to it"? I better make sure I have the right approach before submitting my answer.
FE
Fernanda 1 year ago
Okay, I think I've got it. Replacing the file references with the parameter should meet the goal, but I'll double-check the code just to be sure.
TA
Tamala 1 year ago
Hmm, I'm not sure if that's the complete solution. The question mentions there might be multiple correct answers, so I'll need to think this through carefully.
MA
Malinda 1 year ago
This looks straightforward. I'll just replace the hard-coded file references with the DataSourceExcel parameter and submit my answer.
JA
Jamal 1 year ago
I was just about to try and create a flow to automate the file path updates. But this parameter approach is way cleaner. Nice one!
ME
Melvin 1 year ago
Haha, finally a question where the solution isn't to just use Power Automate. This one's actually about Power Query, nice!
LY
Lyndia 1 year ago
This is the correct answer. Parameterizing the data source is a best practice for sure.
TA
Tanja 1 year ago
Yes, using a parameter like DataSourceExcel will make the code more maintainable.
AN
Antione 1 year ago
No, because hard-coding the file location in each query definition provides more control.
AL
Alisha 1 year ago
Yes, because using a parameter will make it easier to update the file location in the future.
RE
Rebecka 1 year ago
Totally, this is a great solution. No more manually updating the file path in every query definition. Genius!
MA
Magdalene 1 year ago
↳ replying to Rebecka
Absolutely, it's a smart way to manage the file path
WI
Wilda 1 year ago
↳ replying to Rebecka
Agreed, it will definitely save time and effort
GL
Glen 1 year ago
↳ replying to Rebecka
Yes
RE
Rebbeca 1 year ago
Yep, that's the way to go! Replacing the hard-coded file location with a parameter makes the code much more flexible and maintainable.
JE
Jennifer 1 year ago
↳ replying to Rebbeca
User 2: Yep, that's the way to go! Replacing the hard-coded file location with a parameter makes the code much more flexible and maintainable.
GE
Gearldine 1 year ago
↳ replying to Rebbeca
User 1: A) Yes
0/2000 characters

Save Cancel