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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
arehman
Frequent Visitor

how i change date year for all rows for date column from 1997 to 2019

i try to replace value 1997 to date column but it change only one row value how i change all rows 1997 year to 2019 using power bi see screen shot

date change.png

3 REPLIES 3
arehman
Frequent Visitor

i got solution by first changing date column type to text and than in tranform select replace option and replace value 1997 to 2019 with selecting advance option " non-breaking space " and replace 1997 to 2019 and after full replacement change date column type to date see screen shot hope it will help you too 

change year value in column in power bi by arehmanchange year value in column in power bi by arehman

mahoneypat
Microsoft Employee
Microsoft Employee

Add a custom column with this formula

 

=#date(2019, Date.Month([Date]), Date.Day([Date]))

 

Then delete your original column.

 

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


this does not work shows error

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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