cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhinesh28R
Post Prodigy
Post Prodigy

Gallery items descending from SharePoint list

Hi,

In my scenario am doing display records from SharePoint list to gallery.

And also am using gallery pagination.

Now am what i need to do is gallery records from SharePoint item in descending order which means last added items display in a first of gallery. 

Am using SortBycolumns with descending order.. 

 

My function is following,

 

SortByColumns(
LastN(
FirstN(
SPList,
drpPaginationSize_2.Selected.Value * varPageNumber1
),
drpPaginationSize_2.Selected.Value - (drpPaginationSize_2.Selected.Value * varPageNumber1-CountRows(SPList))
),"Created",Descending),
SortByColumns(
LastN(
FirstN(
SPList,
drpPaginationSize_2.Selected.Value * varPageNumber1
),
drpPaginationSize_2.Selected.Value
),"Created",Descending)

 

This is what i did.

 

But i don't get a proper descending order in a gallery.

 

Am i did correct or not?

 

What i need to do?

 

Thanks,

Dhinesh

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,991)