cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
keedman4
Level: Powered On

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
Dual Super User
Dual Super User

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!

keedman4
Level: Powered On

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

Dual Super User
Dual Super User

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
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (3,719)