cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Sort by Date

Hello

 

So i am using this : 

SortByColumns(Filter('[dbo].[databse1]',StartsWith(PONum, TextSearchBox1.Text),StartsWith(LookUp(CachedOperatorTypes,Id=OperatorId,FirstName), TextSearchBox1_1.Text)),"ReceivedDateTime",If(SortDescending1, Ascending,Descending))

 

This thing works fine and shows the latest date on TOP. See the screenshot.

 

But, When I go to Advanced settings and change the data row limit to 2. it doesn't shows the latest dates. How to fix that .. See the screenshotR3eceived datae.pngRecieved date 2.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Sort by Date

Hi @Anonymous 

 

It will show the latest date but it will depend on the delegation limit

 

Another option will be to load data in a collection in batches of 2k (delegation limit)

And then sort base don the collection

View solution in original post

5 REPLIES 5
Dual Super User
Dual Super User

Re: Sort by Date

Hi @Anonymous 

 

Both your screenshots are sorted correctly

 

You have set data row limit for delegation to 2

if you have a delegation warning then it will only fetch 2 records

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

Re: Sort by Date

@RezaDorrani  Why different dates? It should show the same dates weather i put 500 or 2 in row limits?

Dual Super User
Dual Super User

Re: Sort by Date

Hi @Anonymous 

 

It is becuase the items returned are different

In your gallery, add a label and set its text to ThisItem.ID (this will help understand which item is being showcased)

 

Also when delegation limit is set to 2, it will first load 2 records and then perform your filter (if you are getting a delegation warning)

 

I just posted a video describing delegation

https://www.youtube.com/watch?v=gwiErbYtRdA

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Anonymous
Not applicable

Re: Sort by Date

@RezaDorrani 

Is there anyway, so it shows the latest date even after changing the delagation row limits?

Dual Super User
Dual Super User

Re: Sort by Date

Hi @Anonymous 

 

It will show the latest date but it will depend on the delegation limit

 

Another option will be to load data in a collection in batches of 2k (delegation limit)

And then sort base don the collection

View solution in original post

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,156)