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 / Value +1 based on othe...
Power Apps
Unanswered

Value +1 based on other column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello. 

I have a code to let my SignupID go +1 for each new item added.

Currently i am trying to implement it so I have my MainID and my SignupID. 

 

Currently SignupID follows the code below

Patch(
 Deltagerliste;
 Defaults(Deltagerliste);
 {
 SignupID: Text(
 Value(
 First(
 Sort(
 Deltagerliste;
 Value(SignupID);
 Descending
 )
 ).SignupID
 )+1
 );
 Titel: Label1_3.Text;
 MainIDSignup: Label24.Text;
 Brugernavn: User().FullName;
 Deltager: "1";
 PlusOne: If(
 Checkbox1.Visible;
 (If(
 Checkbox1.Value = true;
 Text("1");
 Text("0")
 ));
 Text("0")
 );PlusKids: If(
 Dropdown1.Visible;
 Dropdown1.SelectedText.Value;Text("0"))
 }
)

 (and works)

 

Now I wish to tweak the code so that it always follows the number it reached according to MainID.

 

For instance

 

MainIDSignupID
11
12
13
31
32
41
51
52

 

Any tips or tricks?

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    You can do this by simply adding a FILTER function in your SignupID argument to look at only records for a particular MainID.

    MainID: varMainID,
    SignupID: Text(
     Value(
     First(
     Sort(
     Filter(Deltagerliste, MainID=varMainID);
     Value(SignupID);
     Descending
     )
     ).SignupID
     )+1

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey there @mdevaney 

     

    I believe i forgot to tell you that the MainID comes from another sharepoint list called "MainEvent". 

     

    Perhaps this is what you are doing with the variable varMainID - but i can't get the variable to work. I feel like i need a Set() or something for that part. 

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
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard