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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Raul_Cristobal
Regular Visitor

Help with columns with date format

Hello, how can I convert these columns to date? for example: year column = 2009 month column = 12, I want the date 01/12/2019 like this for everyone.
Thank you.

Raul_Cristobal_0-1680110511509.png

Raul_Cristobal_1-1680110520410.png

 

 

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Raul_Cristobal 

 

Download example PBIX file

 

In Power Query, add a new Custom Column with this code

 

= Date.From("1/" & Text.From([CDG_MES]) & "/" & Text.From([CDG_ANNO]))

 

 

You can also do it in DAX with this 

 

Date = DATE([CDG_ANNO], [CDG_MES], 1)

 

 

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.