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

Dynamic HTML Table Data error

Through flow i have dynamic HTML table.  got total expenses and budget from dynamic HTML table. 

i tried to calculate  sum and percentage from below formula but I got error in dividing..
It shows below error.

 
 

1.JPG2.JPG

 

mul(div(float(variables('TodateExpenses')),float(variables('Budget'))),100)
 
It's seems it is trying to divide empty body field. Is there way out?
 
Any tips?
1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @sgr 

 

Add an If condition to check variables('Budget') is null or use an expression to check the length > 0 of variables('Budget').

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User
Super User

Hi @sgr 

 

Add an If condition to check variables('Budget') is null or use an expression to check the length > 0 of variables('Budget').

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

you are correct, some time solution is so simple but we overlooked. thank you for your suggestion. 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,252)