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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cmkrishnaprasad
Regular Visitor

Set paramaeter's Default value to the Start of month

So i am developing a report where i've set two parameters to filter the dates,

From_date and To_date.

To_date default Value is Today(), for From_date i want to set the default value from the Starting day of the current month.

I tried using this Expression

cmkrishnaprasad_0-1701784151829.png

But i am getting this error.

"The 'Value' expression for the report parameter 'From_date' contains an error: [BC30108] 'Date' is a type and cannot be used as an expression.
----------------------------
The definition of the report '' is invalid.
----------------------------
An error occurred during local report processing."

 

Is there any other way that i can do this?

1 ACCEPTED SOLUTION
ray_codex
Resolver II
Resolver II

Date is a DAX function, you are building this in the Power BI report builder, right? The internal expression language isn't DAX. You can check the common function to see how to write expressions, see the arrow. This will work, might be a little different depending on your region:

ray_codex_0-1701791926216.png

 



View solution in original post

3 REPLIES 3
ray_codex
Resolver II
Resolver II

Date is a DAX function, you are building this in the Power BI report builder, right? The internal expression language isn't DAX. You can check the common function to see how to write expressions, see the arrow. This will work, might be a little different depending on your region:

ray_codex_0-1701791926216.png

 



Hey @ray_codex, That worked for me

Thanks..!🤝

some_bih
Super User
Super User

Hi @cmkrishnaprasad based on picture, you selected Constants as Category. Check it.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.