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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Avry_th
Frequent Visitor

An argument of function 'DATE' has the wrong data type or the result is too large or too small

Hello There, 

I have been searching for how to solve the DATE have wrong data type or the result is too large or too small, however couldn't get mine solved. 

 

My case is i only want the date that  have the current Year, current month and the Day of my Start date column. i have tried the below: 

 

NewDate = DATE(YEAR(TODAY()),MONTH(TODAY()),DAY('Commission Agent'[start_date]))
but it throw the error. 
Avry_th_0-1660720666255.png

 

i tried to the same with my Dim Date and it working fine. i am not sure what wrong with my start date column.

Could anyone help me with this please ?

Thanks 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Avry_th 

are there any null values in the date column? 

 

If the date is null, day() can't return the whole number and you can build the new date column 

 

1.PNG

 





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Avry_th
Frequent Visitor

@ryan_mayu , ah, yes my start date column had null values. thanks for helps 🙂

you are welcome





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

Proud to be a Super User!




ryan_mayu
Super User
Super User

@Avry_th 

are there any null values in the date column? 

 

If the date is null, day() can't return the whole number and you can build the new date column 

 

1.PNG

 





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

Proud to be a Super User!




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.