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 / I want to make this nu...
Power Apps
Answered

I want to make this number start over with 1 when the year changes

(0) ShareShare
ReportReport
Posted on by 321

There is a field where DB is sharepoint and data type is text.
I'm automatically creating a field where 1 is increasing. But I want to make this number start over with 1 when the year changes.

if this year is 2023, 2023_1~
if this year is 2024, 2024_1~

if this year is 2025, 2025_1~...

What can I do??

Bingqiling_0-1701052809336.png

 

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Bingqiling ,

     

    Please try this

    vxiaochenmsft_0-1701053395999.png

    If(CountRows(Filter(LIST45,Year(Today()) in Text(Created)))=0,Year(Today())&"_1",Year(Today())&"_"&(CountRows(Filter(LIST45,Year(Today()) in Text(Created)))+1))

     

    Best Regards,

    Wearsky

  • Bingqiling Profile Picture
    321 on at

    If I use it like this, will the third number be 2024_3 in 2024??
    I am currently setting up the document number of the application.
    The documents you applied for in 2023 will start with 2023_1
    Documents filed in 2024 start with 2024_1.

    Then, I wonder if the 5th document I applied for in 2024 will be 2024_5.

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Bingqiling ,

     

    Yeah, if no file was created in that year, then it will be <year>-1.

    If some files were created in that year, then it will automatically increase the latest file ID by 1.

     

    Best Regards,

    Wearsky

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard