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

Delegation Warning

(0) ShareShare
ReportReport
Posted on by 159

Hi Team.

 

I built an application in power apps and I have these function delegation problems, but I have tried to solve them with some other formulas and it does not work:

 

Label4= CountIf(Recibo, Title = "Recibido")

in this button I only want to do a record count when the condition is "Recibido"

 

TextSearchBox1=

SortByColumns(
Filter(
Recibo,
Title = "Recibido",
StartsWith(Destinatario,TextSearchBox1.Text) || StartsWith(Paqueteria,TextSearchBox1.Text) || StartsWith(Proveedor,TextSearchBox1.Text) || StartsWith(Text(PO),TextSearchBox1.Text)
),

"Title",
If(
SortDescending1,
Ascending,
Descending
)
)

 

with this text box I only want to filter the content according to the value that I write according to the columns of the RECIPIENT, PO .....

 

Any idea?

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @jaimeMtz07 

     

    This is to get count #1

    With(
     {
     _Item: Filter(
     Recibo,
     Title = "Recibido"
     )
     },
     CountRows(_Item)
    )
  • Verified answer
    gazzo1967 Profile Picture
    1,151 on at

    @jaimeMtz07 
    Delegation issue can be solved using Collections
    tthis means that you are not directly trying to filter your data source.
    On your first screen

    select the screen for example 'screen1'
    then in the formula selection change to ONVISIBLE = ClearCollect(colRep, Recibo)
    Change your formula to this

    TextSearchBox1=

    SortByColumns(
    Filter(
    colRep,
    Title = "Recibido",
    StartsWith(Destinatario,TextSearchBox1.Text) || StartsWith(Paqueteria,TextSearchBox1.Text) || StartsWith(Proveedor,TextSearchBox1.Text) || StartsWith(Text(PO),TextSearchBox1.Text)
    ),

    "Title",
    If(
    SortDescending1,
    Ascending,
    Descending
    )
    )
    your delegation issue should go 🙂
    Hope that helps 
    Gary
    PS Consider a thumbs up and mark as Solved if it works 🙂

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @jaimeMtz07 

     

    Please try this your gallery filter

     

    With(
     {
     _Item: Filter(
     Recibo,
     Title = "Recibido"
     )
     },
     Sort(
     Filter(
     _Item,
    StartsWith(Destinatario,TextSearchBox1.Text) || StartsWith(Paqueteria,TextSearchBox1.Text) || StartsWith(Proveedor,TextSearchBox1.Text) || StartsWith(Text(PO),TextSearchBox1.Text)
     ),
     "Title",
     If(
    SortDescending1,
    Ascending,
    Descending
    )
     )
    )

     

     

     

  • jaimeMtz07 Profile Picture
    159 on at

    Great solution, short and easy... uhmmm

  • jaimeMtz07 Profile Picture
    159 on at

    Whats is the difference than the other solution?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    The collection is going to keep the data in memory until you clear it. Based on the columns this will be resource-intensive. On the other hand, If you use With uses temp variable just to filter and it's a better approach.

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 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard