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
Anonymous
Not applicable

Extract date from Text and plot as date column in table

Hi

I've got some data in text format with a date range attached. I've just made a date column and want to populate it with the above date range.

Please assist me with this. Attached snap.

Saibalmet_0-1667347116250.png

 

I am using custom column to create date in power query with = #date( Year, Month, Day) to poulate entire colume with unique date.

Thanks

Saibal

4 REPLIES 4
Anonymous
Not applicable

Hi  @Anonymous ,

Do you want to convert [Booking ID] to date format, what is the conversion format between them.

I converted according to the previous "7 Digit Julian Date conversion", the date is not between 2022.7.1-2022.9.30.

Date.AddDays(#date(Number.RoundDown([Booking ID]/1000),1,1),Number.Mod([Booking ID],1000)-1)

vyangliumsft_0-1667356795685.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi Liu Yang,

I want to exctract Date from header text "Booking Stay report Between: 1-Jul-22 to 30-Sep-22.to want to plot in two column start date and end date.

 

I am using custom column to create date in power query with = #date( Year, Month, Day) to poulate entire colume with unique date.

 

Thanks

Saibal

amitchandak
Super User
Super User

@Anonymous , Is the date not there in any of the rows below, it is there in the header?

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit,

Yes Date range mentioned in the header text. I want to exctract Date from header text "Booking Stay report Between: 1-Jul-22 to 30-Sep-22.to want to plot in two column start date and end date.

Thanks

Saibal

 

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.