cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DaleJohnny
Helper I
Helper I

Powerquery - Convert Number to Date

Hi All,

 

I have a .csv file, that i need to import with the Dataflow in our CDS.

 

In this file there is a column whit lastinvoicedate in the format dd.MM.yyyy (8 digits) OR d.MM.yyyy (7 digits) if it was f.e. the 1.01.2020.
How can i add to the 7 digits a 0 in front so any date has the same format?

DaleJohnny_0-1608190822531.png

 

Thanks forward

Dale

 

1 ACCEPTED SOLUTION

Accepted Solutions
ManishJain
Solution Sage
Solution Sage

Hi @DaleJohnny ,

 

Considering this column is a text and when you retrieve the data in flow you can do length check of this field while iterating for each row , if 7 then append 0 , else leave it.

 

Thanks

View solution in original post

1 REPLY 1
ManishJain
Solution Sage
Solution Sage

Hi @DaleJohnny ,

 

Considering this column is a text and when you retrieve the data in flow you can do length check of this field while iterating for each row , if 7 then append 0 , else leave it.

 

Thanks

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,614)