cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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 @Anonymous  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 my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

Highlighted
Super User
Super User

Re: set variable properties

@Anonymous, 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

View solution in original post

2 REPLIES 2
Super User
Super User

Re: set variable properties

Hi @Anonymous  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 my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

Highlighted
Super User
Super User

Re: set variable properties

@Anonymous, 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

View solution in original post

Helpful resources

Announcements
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 (5,292)