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
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
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.

Top Solution Authors
Top Kudoed Authors