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

Error in the Date format

Hi Team,

Could you please help me in fixing the below error face in Power BI:

Expression.Error: The Date operation failed because the resulting value falls outside the range of allowed values.
Details:
    1/3/0001

PriyankaNag_0-1705057698285.png

Any suggestion or advice will be highly appreciated.

Thanks

8 REPLIES 8
slorin
Super User
Super User

Hi

Date.From("01/01/0100", "en-EN") = #date(100, 1, 1) 

Date.From("12/31/0099", "en-EN") = #date(99, 12, 31)

Date.From("01/01/0001", "en-EN") = #date(1, 1, 1)

Date.From("01/01/99", "en-EN") =#date(1999,1,1)

Date.From("12/31/49", "en-EN") =#date(2049,12,31)

Date.From("01/01/50", "en-EN") =#date(1950,1,1) 

 

but 

Number.From(#date(100, 1, 1) ) = -657434

Number.From(#date(99, 12, 31) ) => error

 

Stéphane

Hi Stephane,

Thanks for the input.

We have a query, we are not getting the date ranges from 01/01/0001 to 12/31/0099 in the report view.

PriyankaNag_0-1705392826142.png

Kindly guides us haow to resolve this issue.

 

Thanks,

Priyanka 

If all you need to do is have them for a Power BI report, and you don't need to do any date calculations in Power BI, you could convert them to text strings.

 

eg:

 

 

#"Text Dates" = Table.TransformColumns(#"Previous Step",{"Date Column", each Date.ToText(_,"MM/dd/yyyy")})

 

 

In the Advanced Editor of PQ, change "Previous Step" and "Date Column" to the appropriate step and column name as required. And the format to whatever it is you prefer.

 

Above in Power BI

ronrsnfld_0-1705930041972.png

 

 

Anonymous
Not applicable

Hi @PriyankaNag 

 

It seems the date ranges from 01/01/0001 to 12/31/0099 are not supported in Power BI. Below is my test result. 

vjingzhanmsft_0-1705913763585.png

 

From the official documentation, only years between 1900 and 9999 are designed to be supported. 

vjingzhanmsft_1-1705914002397.png

Data types in Power BI Desktop - Power BI | Microsoft Learn

vjingzhanmsft_2-1705914273169.png

DATE function (DAX) - DAX | Microsoft Learn

 

Although the years between 0100 and 1899 appears supported at present according to the test, this cannot be always guaranteed as they are not in the designed allowed range.

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Vijay_A_Verma
Super User
Super User

In Power Query date between the years 1900 and 9999 are supported. 

The error says that there is a date 1/1/0099 which is naturally before year 1900, hence not supported. Hence, the operation is failing.

Either you need to correct this data in source or in Power Query itself.

In Power Query dates are supported from 1/1/0001. The problem lies elsewhere.

 

let
    Source = #table(1,{{"1/1/0099"},{"1/1/0001"}}),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type date}})
in
    #"Changed Type"

ronrsnfld_0-1705928311679.png

 

 

Hi Vijay,

Can you please explain briefly what is the issue?

Thanks

Not without seeing your data and code. And I'm not going to copy a screenshot.

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 Kudoed Authors