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 Statement for Table...
Power Apps
Unanswered

If Statement for Table Column Value

(0) ShareShare
ReportReport
Posted on by

I am making a procurement tracker and have a component that progresses through 19 steps. 

 

Right now the varCurrentStep is just 1, 2 ,3 etc. 

 

But I want to make it so that when an item moves to step 2, the varCurrentStep will move automatically. I was going to do this by changing the "Status" column in my table to "Step 2" and then doing an if statement (If Status = Step 2, set value to 2). 

 

What is the syntax for this? I have If('Status (Tracker Table)'.Value = "Step 2", 2) but that doesn't seem to be working.

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @PatrickMcLeanGL ,

     

    If you are navigating using button/icon as progress stages (used in PowerApps template) or moving through stages then use this on the button.

    Concurrent(
     If('Status (Tracker Table)'.Value = "Step 1", Set(varCurrentStep, 1)),
     If('Status (Tracker Table)'.Value = "Step 2", Set(varCurrentStep, 2)),
     If('Status (Tracker Table)'.Value = "Step 3", Set(varCurrentStep, 3)),
     If('Status (Tracker Table)'.Value = "Step 4", Set(varCurrentStep, 4)),
     If('Status (Tracker Table)'.Value = "Step 5", Set(varCurrentStep, 5)),
     If('Status (Tracker Table)'.Value = "Step 6", Set(varCurrentStep, 6)),
     If('Status (Tracker Table)'.Value = "Step 7", Set(varCurrentStep, 7)),
     // ... so on
    );

     

    Your variable will be updated,

    Hope this helps

  • PatrickMcLeanGL Profile Picture
    on at

    I'm still sort of new to powerapps, where would I put this?

     

    In addition is it possible to update the edit form with new fields for each stage? For example, stage 2 is review sample documentation, so I wanted to have a box that they could tag the date it was reviewed and would add it into the dataverse table, then when they progress to stage 3 (issue sample PO), that field would disappear and different fields (sample PO issue date) would appear instead.

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @PatrickMcLeanGL ,

     

    Can you show how is the App setup, as there can be many ways of approach.

    Also, is can be possible to update the form but I need to check your app.

  • PatrickMcLeanGL Profile Picture
    on at

    PatrickMcLeanGL_0-1706550634359.png

    Very early stages obviously.. trying to get the functionality working first.

    So left side is a Gallery of items from a Table, Right side is the editable form. I want the progress to next stage button to change the stage of the item to its next stage (stage 2 to stage 3) which in turn would update the progress bar at the top to the correct stage.

  • PatrickMcLeanGL Profile Picture
    on at

    PatrickMcLeanGL_0-1706556669354.png

    This is the component.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard