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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
2019Tony
New Member

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
v-lili6-msft
Community Support
Community Support

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
v-lili6-msft
Community Support
Community Support

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.

Hi Lin,

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

 

Cheers,

Ton

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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