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

Dynamic M Query Parameter Cannot Refresh From Slicer

Hi all,

 

I need to import data from Python Script. I have done the following steps:

1. Create a parameter for the script in Advanced Editor mode.

2. Run the script and successfully load the data. The data is then shown in a table in Report view.

3. Create table in Direct Query mode and bind the column to parameter in the script.

4. Create the sclicer to choose value in the table in step 3. The value is already bound to the parameter.

 

However, after choosing value in the slicer, I notice that the python script runs, but the data in the table in step 2 does not update. The only way for the data to be updated is by manually editting the Current Value of the parameter in Power Query Editor.

 

Can anyone please tell me how to update the parameter from the slicer? I have been stuck in this step for a while, though I tried to search for relevant solutions many times. Thank you in advance.

 

Best regards,

Heine.

2 REPLIES 2
Anonymous
Not applicable

Hi Stephen, thanks for your reply. I cannot find "Dynamic M Query Parameters" in Options setting. The only option related to parameters is "Field parameters". Can you tell me how to find Dynamic M Query Parameters option check box?

heinenguyen_0-1658372573056.png

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Please check this video:

How to update M query parameters based on filters and slicers - YouTube

More details you can refer to the official document:

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Docs

There are also some considerations and limitations:

Considerations and limitations

 

 

 

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.

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.