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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Parameterized Custom SQL

Hi, 

 

I have a requirement to pass on parameters into custom sql query to pull data and end user should be able to change these parameter values. 

Ex : I need a date parameter which can be controlled by end user, and this date parameter will be used in sql like below.

select * from table where date = <date_parameter>

once the report is published to power bi service, if end user change value of this date_parameter, entire data in the report should be changed.

 

Also, I have been searching for custom sql option to azure data bricks but I couldn't find it. I am able to connect to tables on data bricks but not finding an option to write sql on power bi desktop pointing to azure data bricks. Does power bi supports custom sql to azure data bricks ?

 

Thank you.

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , refer if this can help

https://channel9.msdn.com/Blogs/MVP-Azure/Pass-parameter-to-SQL-Queries-statement-using-Power-BI

 

check : https://community.powerbi.com/t5/Desktop/parameterize-connection/m-p/205900#M90712

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors