cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kaloyanides
Level: Powered On

Auto add next highest number.

I have a sharepoint list that's used in an access database and a PowerApp. The Account number field is used throughout the access database. When a new Account is added to the PowerApp, I need it to auto-assign the next highest available Account Number. In access I would use: =Nz(DMax("CompanyNum","tblCompanies",""),0)+1

 

How would I do this in PowerApps? 

 

Table: tblCompanies_2

Field: CompanyNum

 

I've only been using PowerApps for a week or so - FYI - so far from savvy.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft dinusc
Microsoft

Re: Auto add next highest number.

In PowerApps, the formula would be:

First(Sort(tblCompanies_2, CompanyNum, SortOrder.Descending)).CompanyNum + 1

View solution in original post

1 REPLY 1
Highlighted
Microsoft dinusc
Microsoft

Re: Auto add next highest number.

In PowerApps, the formula would be:

First(Sort(tblCompanies_2, CompanyNum, SortOrder.Descending)).CompanyNum + 1

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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