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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Umair_Aslam01
Frequent Visitor

use current date in current value of manage parameter

Hi everyone!

 

I am trying to use date parameters in the Power BI direct query but I am facing a problem. Can anyone help me to overcome it?

 

It is about the use of the current date in the current value of the manage parameter.

 

Umair_Aslam01_1-1698306259369.png

 

I am binding the date with the date parameter but it want one value that is used on the first time loading of the report. I want to use current date in the current value tha first time it should run current date automatically.

 

Can anyone help me.

 

Thanks.

 

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Umair_Aslam01 ,

 

Current Value in parameter management cannot be set dynamically.

If you want to filter data before loading dynamically, please refer to the following way:

Solved: Dynamic Date Parameter for Import Queries - Microsoft Fabric Community

You do this by creating a query in Power Query and referencing that query when you type SQL Statement into the connector.

 

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @Umair_Aslam01 ,

 

Current Value in parameter management cannot be set dynamically.

If you want to filter data before loading dynamically, please refer to the following way:

Solved: Dynamic Date Parameter for Import Queries - Microsoft Fabric Community

You do this by creating a query in Power Query and referencing that query when you type SQL Statement into the connector.

 

 

Best Regards,

Stephen Tao

 

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

ppm1
Solution Sage
Solution Sage

Are you doing import or direct query? In any case, you wouldn't use a parameter for that. Either use the pulldown on your date column and choose one of the date filters there (e.g., is in previous 1 day), or use Date.From(DateTime.LocalNow()) to get today's date dynamically in the formula bar.

 

Pat

 

Microsoft Employee

I am using direct query and binding the parameter with the date column and the parameter wants the initial (default) value. I want to you their current date.

 

I am trying to use if condition in advance query but not get sucess yet.

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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