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 Apps
Answered

Switching Views

(0) ShareShare
ReportReport
Posted on by

I have a working formula for switching to one alternate view but when I try to add another view, it didn't work.  I'm not sure if my formula for the second view is correct but I'm trying to filter for only those actions that are not complete. Any assistance is appreciated!

 

Working formula:

SortByColumns(

    Switch(

         Dropdown1_1.Selected.ViewName,

 "My Candidates",

 Filter([@'Recruitment tracker'],Recruiter.Email = User().Email),

         Filter([@'Recruitment tracker'],StartsWith('Candidate Name', TextSearchBox1_1.Text))

),

"Title",

If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)

)

 

Attempted to add View:

SortByColumns(

    Switch(Dropdown1_1.Selected.ViewName, "My Candidates", Filter([@'Recruitment tracker'],Recruiter.Email = User().Email), "My Active Candidates", Filter([@'Recruitment tracker'],Recruiter.Email = User().Email && 'Action Complete' = "No", Filter([@'Recruitment tracker'], StartsWith('Candidate Name', TextSearchBox1_1.Text))), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    Hi @IBrant ,

     

    This looks fine to me. I am assuming you're data source is SharePoint and "Action Complete" is a Yes/No field type? If yes, replace 'Action Complete' = "No" with 'Action Complete' = false

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • IBrant Profile Picture
    on at

    It is currently a dropdown choice yes/no in my SharePoint list. I originally had it as a yes/no but it populated as a toggle in the app so I changed it. I tried your formula, but it still didn't work for me. Thanks for your assistance!

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @IBrant - for a SharePoint Choices column, you will need:  'Action Complete'.Value = "No".

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • IBrant Profile Picture
    on at

    Hi, Amik,

     

    I tried the above and it still didn't work.  I also tried adding a "complete" column with a toggle and the previous solution and that did not work either. These are the formulas that I tried:

     

    SortByColumns(

        Switch(Dropdown1_1.Selected.ViewName, "My Candidates", Filter([@'Recruitment tracker'],Recruiter.Email = User().Email), "My Active Candidates", Filter([@'Recruitment tracker'],Recruiter.Email = User().Email && 'Action Complete'.Value = "No", Filter([@'Recruitment tracker'], StartsWith('Candidate Name', TextSearchBox1_1.Text))), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))

     

    SortByColumns(

        Switch(Dropdown1_1.Selected.ViewName, "My Candidates", Filter([@'Recruitment tracker'],Recruiter.Email = User().Email), "My Active Candidates", Filter([@'Recruitment tracker'],Recruiter.Email = User().Email &&  Complete  = false, Filter([@'Recruitment tracker'], StartsWith('Candidate Name', TextSearchBox1_1.Text))), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))

  • IBrant Profile Picture
    on at

    Working: 

    IBrant_0-1686671336497.png

    Not Working:

    IBrant_1-1686671353316.pngIBrant_2-1686671360897.png

     

  • IBrant Profile Picture
    on at

    Hi Amik, 

    I tried it again and it worked.  I don't know why it wasn't working before, but thank you so much for your help!

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard