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

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 Super User!







Power BI Blog

Highlighted
Helper III
Helper III

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 IV
Super User IV

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 Super User!







Power BI Blog

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors