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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Migscruz
Helper I
Helper I

Convert day date into number

Hi!

 

I need help with this please:

 

I have a a column in a table that shows me the day/month/year. I would like to transform it into a number considering the day of the month:

 

Example:

DateNumber
26/11/202126
27/11/202127
28/11/202128
29/11/202129
30/11/202130
1/12/20211
2/12/20212
3/12/20213
4/12/20214

 

How can i do this? i've tried with left function but it doesn't work.

 

Thanks 🙂

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@Migscruz,

Try:

DayofMonth = Day[Date]

 

Regards,

View solution in original post

1 REPLY 1
rsbin
Super User
Super User

@Migscruz,

Try:

DayofMonth = Day[Date]

 

Regards,

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.