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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

How to fix date

Hi all,

I have date  04/21. How can I fix it to 01/04/2021?

ola210586_0-1626163288626.png

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Try like below:

Step1,change date type to date:

vluwangmsft_0-1626314821752.png

vluwangmsft_2-1626315357725.png

 

Step 2, use the following dax to create new date column:

datenew = DATE(YEAR('Table'[Date]),MONTH('Table'[Date]),01)

Final you will see the below:

vluwangmsft_1-1626315270157.png

And you could use the new column and delete before column then rename new column .

 

 

Wish it is helpful for you!

 

Best Regards

Lucien

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

 

 

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Try like below:

Step1,change date type to date:

vluwangmsft_0-1626314821752.png

vluwangmsft_2-1626315357725.png

 

Step 2, use the following dax to create new date column:

datenew = DATE(YEAR('Table'[Date]),MONTH('Table'[Date]),01)

Final you will see the below:

vluwangmsft_1-1626315270157.png

And you could use the new column and delete before column then rename new column .

 

 

Wish it is helpful for you!

 

Best Regards

Lucien

Anonymous
Not applicable

Thank you for your help

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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