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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply

How to pass power bi parameters to native sql query with DirectQuery mode

I am trying to pass power parameters to native SQL query with DirectQuery  mode as placeholders as below

 

select sr.enddate at time zone 'UTC' at time zone '"&setTimeZone&"' from sub_result sr

balajiratnala6_2-1670971618737.png

 

balajiratnala6_1-1670971145091.png

 

 

I am facing below issue

balajiratnala6_0-1670970781506.png

 

Need help on it.

1 ACCEPTED SOLUTION

Issue resolved. Initially i have given wrong parameter placeholder , due to that have some problems . To resolve that problem,  changed EnableFolding to false. After given right parameter placeholder , not changed EnableFolding to true that causing issue.

Anyhow helped me  @Anonymous  post resolve issue by re-checking any mistakies in query formation. 

View solution in original post

2 REPLIES 2

Issue resolved. Initially i have given wrong parameter placeholder , due to that have some problems . To resolve that problem,  changed EnableFolding to false. After given right parameter placeholder , not changed EnableFolding to true that causing issue.

Anyhow helped me  @Anonymous  post resolve issue by re-checking any mistakies in query formation. 

Anonymous
Not applicable

Hi @balajiratnala6 ,

 

Please check the limitations listed in the documentation.

Dynamic M query parameters in Power BI Desktop

 

Similar threads:

Dynamic M query parameters fail to load data - Microsoft Power BI Community

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
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.

Top Kudoed Authors