Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Filter SharePoint based on condition

(0) ShareShare
ReportReport
Posted on by 438

Screenshot 2023-12-11 at 3.33.10 PM.png

  • WarrenBelz Profile Picture
    146,605 Most Valuable Professional on at
    Re: Filter SharePoint based on condition

    @dylandavis09 ,

    By all the rules, that relational lookup should not be Delegable - I am also still confused about the structure of 'L-Grade' and why it was failing at some times and showing delegation issue on others.

    I also see now you have posted that it does not work.

  • dylandavis09 Profile Picture
    438 on at
    Re: Filter SharePoint based on condition

    @WarrenBelz, hi good evening. i trying do myself and made it to solved. here is my formulas:

    Filter(
    'Class of 20XX Fundraising Items',
    LookUp(
    'Class of 20XX (Officers)',
    'L-Grade'.Value = LookUp(
    'Class of 20XX (Officers)',
    'Head Sponsor' = User().FullName ||
    'Sponsor 1' = User().FullName ||
    'Sponsor 2' = User().FullName,
    'L-Grade'
    ).Value,
    'L-Grade'.Value
    ) = 'L-Grade'.Value
    )

  • WarrenBelz Profile Picture
    146,605 Most Valuable Professional on at
    Re: Filter SharePoint based on condition

    @dylandavis09 ,

    Sorry I have exhaused all possible Delegation options - you will have to manage it as non-Delegable

  • dylandavis09 Profile Picture
    438 on at
    Re: Filter SharePoint based on condition

    Sometime I see is not right here. But I trying to copy and paste then delegation warning: 

    Screenshot 2023-12-12 at 11.51.00 PM.png

  • WarrenBelz Profile Picture
    146,605 Most Valuable Professional on at
    Re: Filter SharePoint based on condition

    @dylandavis09 ,

    Something is not right here - if both fields are single choices, they should match - also you should not get a Delegation warning. Another variation

    With(
     {
     _Sponsor:
     LookUp(
     'Class of 20XX (Officers)',
     'Head Sponsor' = User().FullName
     ).'L-Grade'
     },
     Sort(
     Filter(
     'DHS Student Users',
     'L-Grade'.Value = _Sponsor.Value
     ),
     'Student Name'
     )
    )
  • dylandavis09 Profile Picture
    438 on at
    Re: Filter SharePoint based on condition

    Copy and paste, and warning back to error message again. See screenshot.

    Screenshot 2023-12-12 at 11.33.50 PM.png

  • WarrenBelz Profile Picture
    146,605 Most Valuable Professional on at
    Re: Filter SharePoint based on condition

    @dylandavis09 ,

    A bit strange - you can try it this way

    With(
     {
     _Sponsor:
     LookUp(
     'Class of 20XX (Officers)',
     'Head Sponsor' = User().FullName
     ).'L-Grade'.Value
     },
     Sort(
     Filter(
     'DHS Student Users',
     'L-Grade'.Value = _Sponsor
     ),
     'Student Name'
     )
    )
  • dylandavis09 Profile Picture
    438 on at
    Re: Filter SharePoint based on condition

    @WarrenBelz, I found the solution. I just added it to 'DHS Students Users' Now it's better, and no errors are displayed; we still have a warning message, though.

     

    Screenshot 2023-12-12 at 10.07.33 PM.png

  • WarrenBelz Profile Picture
    146,605 Most Valuable Professional on at
    Re: Filter SharePoint based on condition

    @dylandavis09 ,

    There is somehting wrong with one of your references as the structure is correct. There is a line under 'DHS Student Users', so maybe that is not the correct name.

  • dylandavis09 Profile Picture
    438 on at
    Re: Filter SharePoint based on condition

    Ok I got it! You correct that L-Grade is a single choice choice column, and Head Sponsor is a text field. It's still something error in red box. Otherwise, green box is worked. 🙂

    Screenshot 2023-12-12 at 9.35.52 PM.png

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard