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

set variable properties

I want to get the average of two temperature values, I am trying this, but it doesn't works out SEE the screenshot.intia.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: set variable properties

Hi @amarpal  generally this occurs when you're trying to set a variable which references itself within the expression. Try creating another variable which does the calculation using Avg_1 or Avg_2





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

Proud to be a Flownaut!





Highlighted
Super User
Super User

Re: set variable properties

@amarpal, you can do this with Compose controls rather than the set variables that you've got. See the images below.
Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

0-InitVariables.pngInitialize 2 variables with the temperatures1-addVariables.pngAdd them together2-average.pngDivide by 2 to get the average

2 REPLIES 2
Super User
Super User

Re: set variable properties

Hi @amarpal  generally this occurs when you're trying to set a variable which references itself within the expression. Try creating another variable which does the calculation using Avg_1 or Avg_2





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

Proud to be a Flownaut!





Highlighted
Super User
Super User

Re: set variable properties

@amarpal, you can do this with Compose controls rather than the set variables that you've got. See the images below.
Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

0-InitVariables.pngInitialize 2 variables with the temperatures1-addVariables.pngAdd them together2-average.pngDivide by 2 to get the average

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

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 Flow Community Video Gallery!

Users Online
Currently online: 50 members 3,950 guests
Please welcome our newest community members: