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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Date

I took a date in a Database with the year 18,19,20,21,22 and
i load it but it came as decimal but when i try to convert these to Date it comes out as 1900.
and i don't know how to get the right date.

Gaucho_0-1673342527859.png

Here is the date but it is in decimal number but when i try to change it to date format it is giving me something else as shown below;

Gaucho_1-1673342580104.png

Thanks in Advance

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Anonymous ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1673404406303.png

 

2. add a new column with below dax formula

Agjust Year =
VAR _val = INT ( "20" & [Year] ) RETURN DATE ( _val, 1, 1 )

 3. set the format in Power BI Desktop

vbinbinyumsft_1-1673404603282.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

It is working. Thank you very much

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1673404406303.png

 

2. add a new column with below dax formula

Agjust Year =
VAR _val = INT ( "20" & [Year] ) RETURN DATE ( _val, 1, 1 )

 3. set the format in Power BI Desktop

vbinbinyumsft_1-1673404603282.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@Anonymous is there a possibility to have the date with the Month included(i.e MM:JJJJ) or in this format (DD:MM:JJJJ). Thanks in advance

Anonymous
Not applicable

It is working. Thank you very much

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

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.