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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.