web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / If function returning ...
Power Apps
Answered

If function returning error "Invalid argument type. Expecting a Number value."

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
 

When clicking on the check mark I want the app to navigate to 1 of 2 screens based on the input in on the data cards in the form. If DataCardValue13 >1 then navigate to RawMaterialRejectEntry screen. It seems like it is searching for the DataCard Value13 to be a number. I have tried DataCardValue13.Value, DataCardValue13.Text, DataCardValue13.TextInput. Do I need to refer to the whole Data Card rather than the specific boxKPIs App check mark.PNG

 

RM Rejects.PNG

 

? I'm stuck at this point.

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 

    You IF statement currently has a a reference to DataCardValue13 like this

    DataCardValue13>1

     

    Instead you should look at the Text property of DataCardValue13 and then convert it to a number.  That should solve your problem.

    Value(DataCardValue13.Text)>1

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you! I couldn't figure out the format to put it into!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard