cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ola210586
Frequent Visitor

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 @ola210586 ,

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 @ola210586 ,

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 @ola210586 ,

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

Thank you for your help

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.