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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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