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
Unanswered

Slow Filtering

(0) ShareShare
ReportReport
Posted on by 18

Hello all, i'm facing some slow process in my app when dataverse tables starts to be a bit bigger ( 7k+ lines). 

 

My question is:

why this kind of filtering spends 10+ seconds for asign the values to the FilteredDataa var.?  I also did it with the clearCollect funcition, but the time was the same. In this example the filter gets 200 lines aprox. 

 

I can't find any way to do a Index filtering type in dataverse except the sortByColumns function that i'm already using. 

 

So anyone can tell me why is this slow and a way to improve the performance?. 

 

Set(
FilteredDataa;
Filter(SortByColumns(Matrix_MovProducto;"cr512_cod_ubicacion";SortOrder.Descending);
cr512_cod_zona = "REP";
cr512_cod_ubicacion = "REP"
)
);;

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @AlGom ,

     

    Sorting on entire table would cost much time and unnecessary. Please try and sort on the filtered table:

    Set(
    FilteredDataa;
    SortByColumns(Filter(Matrix_MovProducto
    cr512_cod_zona = "REP";
    cr512_cod_ubicacion = "REP"
    );"cr512_cod_ubicacion";SortOrder.Descending)
    );;

     

    Best regards,

  • Yogesh Murugan Profile Picture
    447 Moderator on at

    Try this code:

    Set(
     FilteredDataa,
     SortByColumns(
     Filter(
     Matrix_MovProducto,
     cr512_cod_zona = "REP" && cr512_cod_ubicacion = "REP"
     ),"cr512_cod_ubicacion",SortOrder.Descending
    ));
  • AlGom Profile Picture
    18 on at

    Same time, aprox 10 seconds. How ever, what's the point of sorting after filtering?. Is not more usefull,  talking about performance, sorting the table before the filter to make something like an index ( like SQL does )?. 

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 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard