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 Platform Community / Forums / Power Apps / Sorting issue on the S...
Power Apps
Unanswered

Sorting issue on the Sequence Number column in SharePoint after customizing with Power Apps

(0) ShareShare
ReportReport
Posted on by

Hi,

I have "My TI Number" List in SharePoint, In that I have "MyNumber" Text column and I customized with PowerApps and generated sequence number using below code.

MSD9246_0-1677150788525.png

But In SharePoint List, It is displaying like below format if I apply sorting Ascending and Descending in "MyNumber" column  

MSD9246_1-1677152099198.png

 

MSD9246_2-1677152170667.png

How to achieve correct way in ascending and  descending also, In My code any problem?. Please suggest.

 

Or else,

 

Please provide change in the below code to generate Highest to Lowest  

If(SharePointForm1.Mode=FormMode.New,
"TI-"&First(Sort(AddColumns('MY TI Number List',"NewCol",
Trim(Substitute(MyNumber,"TI-",""))*1),NewCol, Descending)).NewCol+1,Parent.Default)

 

As of now it is displaying,

TI-1

TI-2

TI-3

TI-4

 

Need to change in above formula to Generate like below(Highest to Lowest)

TI-4

TI-3

TI-2

TI-1

 

 

 

 

Thanks

   

Categories:

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard