cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

How to work with parameters between T-SQL Server and power BI

good afternoon experts.

First of all thank you very much for offering an opportunity to have a day or solve problems through this medium.

I'm starting with this Microsoft product and I have a lot of doubts about it.

This time, my case is as follows:

I'm passing a query thrown in T-SQL Server to power bi, but that query has a pair of date-type parameters, in the sql server it runs well, but you do not work those parameters in Power BI.

I would like you to please support me for this case.

Thanks a lot.

Note: if you want more additional information I am available

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

Since your sql works well on the SQL Server end, you can use Value.NativeQuery() with original paramters to retrieva result set.

Chris Webb's BI Blog: Passing Parameters To SQL Queries With Value.NativeQuery() In Power Query And ...

smpa01
Super User
Super User

@Syndicate_Admin what's that TSQL query?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






New Animated Dashboard: Sales Calendar


Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors