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

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

Reply
Anonymous
Not applicable

How to pass parameters to Power BI at Runtime/Refresh Time

Hello,

 

I am migrating a report to Power BI.  In the original report, a user enters 2 parameters, a Start Date and End Date.

These are then passed to a query and used in a WHERE Clause.  (i.e.  Where Start Date = Parm1 AND End Date = Parm2).

 

Can I place any needed parameters in a spreadsheet and have PBI load the parms and use them in a WHERE clause?

 

Thanks in advance

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , First Create a query using advance editor and then right click in open that in advance editor

 

a string will use for sql

like

"Select * from Tab"

 

Modify that

"Select * from Tab where date= '" & [Date param] & "'"

 

use Date.Text  is case a format is need

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
Anonymous
Not applicable

Hello Amitchandak,

Can you contact me via email regarding my question?

I'm not sure how to create the query in the Advanced Editor.

Can we meet briefly via MS Teams or Zoom?

 

Thanks very much,
Rich
rstringer.cw@mmm.com

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.