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 / What is wrong with thi...
Power Apps
Answered

What is wrong with this If statement

(0) ShareShare
ReportReport
Posted on by 120

zajacjos_0-1680182628746.png

 

Categories:
  • Verified answer
    SolTeferi Profile Picture
    on at

    Hi @zajacjos ,

     

    You are just missing some comma and parenthesis. Please use the following:

     

    If(varCheckPart="out",ThisItem.quantity - Value(DataCardValue10_2.Text),If(varCheckPart="In",ThisItem.quantity - Value(DataCardValue10_2.Text)))

     

    Also, make sure the  spellings of the values and column names exactly match according to your datasource.

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    You need a separator between the two IF statements.  Depending on where you are in the world that is either a single ';' or a double ';;'   You also need a closing parentheses on the first If(). Try adding ); after the Datacardvalue10_2.Text)

  • zajacjos Profile Picture
    120 on at

    I got it to work with this I also forgot to capitalize the O in out

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard