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 / auto increment number
Power Apps
Answered

auto increment number

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi Expert

i have a list which contains

 

pokhani_0-1656606715674.png

 

if you see above i want the event number to start from 1 whenever new fiscal year starts and for any new event created the number gets added by 1 (it will check the list validate and add 1 to the last number). lets say if there are 100 event number for fiscal year 2020 than the series would be from 1-100 and for next year it will again start from 1

thank you in advance

Categories:
  • Sunil-Narnaware Profile Picture
    681 on at

    @Anonymous 

    lets say if there are 100 event number for fiscal year 2020 than the series would be from 1-12 and for next year it will again start from 1

    Can you elaborate more on this? because you say 100 events but they have 1-12 # only.. so does it repeat after 12.. till 100 are not done..

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    my bad its 1-100

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you please tell me where your data is stored? What are the data types of the two columns?

     

    I have made a simple test for your reference.

     

    1.Here is my SharePoint list.

    vyujincuimsft_0-1657013142370.png

    2. Here is my App.

    If(IsEmpty(Filter(FiscalList,'Fiscal year'=DataCardValue5.Text)),1,
    Sum(First(Sort(Filter(FiscalList,'Fiscal year'=DataCardValue5.Text),Event,Descending)).Event,1))
    Text(Now(),"yyyy")

    vyujincuimsft_5-1657015524612.png

    Result Screenshots:

    vyujincuimsft_3-1657014795673.png

    vyujincuimsft_4-1657015380886.png

     

    Best Regards,
    Charlie Choi

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard