cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

undefined

Hi guys, i am quite new to flow but i have a task im trying to do....i am trying to use expression to carryout a calculation on flow....

I have a table on my list below... i want to write an expression that can calculate the closing account at the end of the day by deducting credit and adding debit from the total budget.....Also opening account should be equals to the closing account of the previous day. Any help??.....Here is the expression i could come up with

sub(triggerBody()?['Budget'],triggerBody()?['Credit'])

List.PNG

3 REPLIES 3
Highlighted
Dual Super User III
Dual Super User III

Re: undefined

Hey @keedman4 

 

The expression looks correct to me. Can you share a screenshot of the flow where you are applying this expression? Also, what is the datatype of these columns? you might want to use the int function to first convert the data to integer and then use the subtract function. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Frequent Visitor

My flow

its quite basic but not complete... I want to be able to add and subtract on the same flow as well as multiply and divide in subsequent onesCapture.PNG

Highlighted
Dual Super User III
Dual Super User III

Re: My flow

Hey @keedman4 

 

So the when an item is created trigger sets off the flow as soon as the item is created and I guess it just returns the basic information like ID, creator, created time etc (it is like that for the CDS connector so I assume it is the same with this one). Can you try adding a get item action after the trigger and in the ID of that, select the id from the dynamic content. In the expression you will now have to update the triggerbody? with Get_Item and reference to the column value that way. Can you try this and check if you face any issues/ errors?

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (4,483)