cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
2019Tony Frequent Visitor
Frequent Visitor

passing URL parameter value to SQL Direct Query

I have the following situation:
The embedded power BI report URL with a filter parameter that depends on user input. it like https: .....&?filter=States/Region eq ‘WEST’.

In the Power BI module connects to the SQL database through Direct Query mode. The SQL Query has a parameter 'RegionName' .
it like ....[Query="SELECT some columns FROM StatesTable WHERE Region = '"&RegionName &"';"

Is it possible to pass the parameter from the URL filter to the SQL Direct Query to get accurate data? How to achieve that?

Any assistance would be valuable.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: passing URL parameter value to SQL Direct Query

hi, @2019Tony 

According to my knowledge, I afraid it couldn't be achieved in power bi for now.

there is an idea about this issue, please vote it up.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: passing URL parameter value to SQL Direct Query

hi, @2019Tony 

According to my knowledge, I afraid it couldn't be achieved in power bi for now.

there is an idea about this issue, please vote it up.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2019Tony Frequent Visitor
Frequent Visitor

Re: passing URL parameter value to SQL Direct Query

Hi Lin,

Thank you for taking the time on this. I will vote, for sure.

 

Cheers,

Ton

 

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 350 members 3,202 guests
Please welcome our newest community members: