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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
mb0307
Responsive Resident
Responsive Resident

Date from text

Hi,

 

In Power Query, I have a Start Date Query, which is being calculated dynamically in the text format.  Example: 01/06/2020

 

and I have this code:

 

Source = {Number.From(#date(Number.FromText(Text.End(#"Start Date",4)),1,1))..Number.From(#date(Number.FromText(Text.End(#"End Date",4)),12,31))}

 

 

I want to use Start Date Query as an input in the code above (replacing 'Start Date' and 'End Date').  

 

Is it possible to do it in the Power Query code above please?

 

Thank you.

1 ACCEPTED SOLUTION
mb0307
Responsive Resident
Responsive Resident

Managed to find a solution: 

 Source = {Number.From(Date.FromText(#"Start Date"))..Number.From(Date.FromText(#"End Date"))}

 

View solution in original post

1 REPLY 1
mb0307
Responsive Resident
Responsive Resident

Managed to find a solution: 

 Source = {Number.From(Date.FromText(#"Start Date"))..Number.From(Date.FromText(#"End Date"))}

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.