web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    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
    443 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 840 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard