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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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