cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jcarrillo
New Member

problems with "The expresion is invalid"

Hello, can someone help with this expression. I can't find what the problem is. I appreciate your collaboration. Thank you very much in advance.

formatDateTime((int(items('Apply_to_each')?['Término de la Etapa de Indagación']) - (25567 + 1) * 86400 * 1000),'dd-MM-yyyy')

I am trying to convert a number that comes from a date in excel to a date format.
Thanks again
 
2 ACCEPTED SOLUTIONS

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

For a flow use the following formula

addseconds('1899-12-30',int(formatnumber(mul(float(items('Apply_to_each')?['Término de la Etapa de Indagación']),86400),'0’)))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Hi Pstork1, If ​​it worked, change a comma and it finally stays this way.
formatDateTime(addseconds('1899-12-30',int(formatnumber(mul(float(items('Apply_to_each')?['Término de la Etapa de Indagación']),86400),'0'))),'dd-MM-yyyy')
Thank you very much and hopefully it will serve others with the same problem.

 

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User III
Dual Super User III

For a flow use the following formula

addseconds('1899-12-30',int(formatnumber(mul(float(items('Apply_to_each')?['Término de la Etapa de Indagación']),86400),'0’)))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Hi Pstork1, Thanks for replying. the same Invalid Expression message continues. What can be?

Hi Pstork1, If ​​it worked, change a comma and it finally stays this way.
formatDateTime(addseconds('1899-12-30',int(formatnumber(mul(float(items('Apply_to_each')?['Término de la Etapa de Indagación']),86400),'0'))),'dd-MM-yyyy')
Thank you very much and hopefully it will serve others with the same problem.

 

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.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Users online (1,686)