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

Simple formula but I can't figure it out

Okay, I have the names of two tennis players in two text boxes - Name1 and Name2.   Next to each I have dropdowns for each of their scores - Score1 and Score2.   All I'm looking to do is automatically put the name of the winner in a third text box based on the higher of the two scores.

 

I thought the formula was:

If( Score1.Selected.Value > Score2.Selected.Value, Name1.Text, Name2.Text)

...but it didn't work.

 

It would be great if there was a list of Excel formulas translated to PowerApps formulas.

1 ACCEPTED SOLUTION

Accepted Solutions
bdodu
Level 8

Re: Simple formula but I can't figure it out

You are comparing text values instead of numbers, perhaps your intention is to compare numeric fields. Score1.Selected.Value is a text value, you can transform it to numeric like this:

 

Value( Score1.Selected.Value )

 

View solution in original post

2 REPLIES 2
bdodu
Level 8

Re: Simple formula but I can't figure it out

You are comparing text values instead of numbers, perhaps your intention is to compare numeric fields. Score1.Selected.Value is a text value, you can transform it to numeric like this:

 

Value( Score1.Selected.Value )

 

View solution in original post

hughrmarks
Level: Powered On

Re: Simple formula but I can't figure it out

Aha!  I was close.   Thanks for the help - it worked!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 223 members 3,554 guests
Please welcome our newest community members: