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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (3,643)