cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User
Super User

Re: Date Format

Hi @ask

 

This is because "right" is an Excel formula

 

You can try the following:

 

Year = Date.Year([Date])

Your Date column must have the data type of Date


Did I answer your question? Mark my post as a solution!
"Proud to be a Datanaut!"
Power BI Blog
ask Member
Member

Re: Date Format

i use the split column function to get the Year, month and day.

 

i try to create a new date by using 

 

date= datevalue(CONCATENATE((CONCATENATE([Month],[Day])),[Year])) from create Add Custom Column.

 

It returned error:

 

Expression.Error: The name 'datevalue' wasn't recognized.  Make sure it's spelled correctly.

Highlighted
Super User
Super User

Re: Date Format

This code should work below.

 

=[#"Day"] & "/" & [#"Month"] & "/" & [#"Year"]

Then once you have that column created, convert the data type to Date


Did I answer your question? Mark my post as a solution!
"Proud to be a Datanaut!"
Power BI Blog

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 114 members 1,720 guests
Please welcome our newest community members: