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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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