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
Anonymous
Not applicable

Parameter from Query

Hi,

I was trying to use a separate Excel File with a table as a Parameter List, so far so good...

Made a query, made a drilldown fine. Now that it's a list, or maybe I think it's one but it's not handled as one.

What must I do to perform such a thing?

Table to Query and DrillDownTable to Query and DrillDownParameter from DrillDownParameter from DrillDown

I made a parameter list as a test inside of the power query module and get a list and I can change the parameters with a combobox. But the table query which I made a drilldown with is just a single text field. What must be done to make a table to a list of parameters?

 

Parameter from created List in PowerQueryParameter from created List in PowerQuery

Kind regards

Sam

7 REPLIES 7
mahoneypat
Microsoft Employee
Microsoft Employee

Not totally clear what you are trying to accomplish, but one option to consider is to reference each of the items in your List (or Table) and use them separately (e.g., List{0} to get the first item of the list) in other query(ies).  Does that help?  If not, can you provide more details?

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

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


Anonymous
Not applicable

Hi @mahoneypat 

I will try to explain. I have different parameters. But instead of typing them manually into a list in power query, I wrote a Excel File and load it as a query made a drilldown and want to use it as a parameter list. But in the parameter selection I just get a textbox with and no combobox selection like if I had written the parameter manually as a list in power query.Manuel List to ParameterManuel List to ParameterManuel List ParameterManuel List ParameterExcel Query List to ParameterExcel Query List to ParameterExcel Query List ParameterExcel Query List Parameter

 

Excel Query ListExcel Query List

That is the M Code for the Parameter from the Excel File

"08" meta [IsParameterQuery=true, ExpressionIdentifier=dt_pg, Type="Text", IsParameterQueryRequired=true]

This is the M Code for the Manuel List Parameter

"08" meta [IsParameterQuery=true, List={"08", "17", "23", "24", "31"}, DefaultValue=..., Type="Text", IsParameterQueryRequired=true]

 

How do I get the ExpressionIdentifier into a List?

 

Hope that was better explained than before :).

Kind Regards Sam

 

Thank you for the additional explanation.  The approach  by suggested by @Anonymous should work.  Please let me know if not.

Regards,

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


Anonymous
Not applicable

Hi @Anonymous ,

You can refer the following documentation to achieve it.

Populate a Power BI parameter list using a query

Best Regards

Rena

Anonymous
Not applicable

@Anonymous 

Yeah that's the way I Did it but I was using power query in Excel not PowerBI (so the edit parameter is missing) i can just change the parameter in power query. can I adjust the m code to perform the "list" from the excel file as parameter?

Anonymous
Not applicable

If you've made a query that results in a list of the desired parameter values (not a table), you can use that query in the Suggested Values for a parameter.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

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


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.

Top Solution Authors