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
NaddingGod
Frequent Visitor

automatically set todays date to a parameter in format YYYY-MM-DD

i need to set a parameters value automatically to todays date, in the format YYYY-MM-DD

3 REPLIES 3
Anonymous
Not applicable

Hi @NaddingGod ,

 

Are you talking about Power Query parameter? If so, I doubt that you could do that. Would you consider creating a custom column and using this column as a filter instead?

Date.ToText(Date.From(DateTime.LocalNow()),"YYYY-MM-DD")

 

Best Regards,

Jay

amitchandak
Super User
Super User

@NaddingGod , date format you can choose in format under column tools .

 

TO set default today you have to create a flag 

 

Is Today = if('Date'[Date]=TODAY(),"Today",format([date], "YYYYMMDD")

 

you have select today in the slicer

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

Hello thanks for the answer.

i am not concerned with the date format. How do i set todays date to a parameter. i want it to chage automatically, with every refresh in my json api.

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