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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors