cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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
Highlighted
Responsive Resident
Responsive Resident

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
Highlighted
Responsive Resident
Responsive Resident

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

Highlighted
Helper IV
Helper IV

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

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,144)