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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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