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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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  @v-cgao-msft  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  @v-cgao-msft  post resolve issue by re-checking any mistakies in query formation. 

v-cgao-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors