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
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
Employee
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
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.