cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhinesh28R
Post Partisan
Post Partisan

List value not increment

Hi,

I have to update my list value by incrementing 1.

But its not getting updated.

 

Set(RP,LookUp(List,Field=Gallery.Selected.Field,People));

Patch(List,LookUp(List,Field=Gallery.Selected.Field),{People:RP+1});

But its not getting Increment in List

 

 

Thanks,

Dhinesh

13 REPLIES 13
CNT
Community Champion
Community Champion

@Dhinesh28R Is the global variable RP having a number set? What is the datatype of the People column?

@CNT  People column is a Number type. Rp is a Global Variable.

CNT
Community Champion
Community Champion

@Dhinesh28R Check the value in RP and make sure it is not blank.

@CNT , Yes man. It Is Blank.

 

Now what to do?

 

Thanks

CNT
Community Champion
Community Champion

@Dhinesh28R If Rp is blank it means that your LookUp is not returning any records. You'll have to sort that out. 

@CNT  In my List people column doesn't have any value means it's Blank correct.

People
 

 

Set(RP, LookUp(List, Field=Gallery.Selected.Field, People));

Now RP is Blank correct.

If it is blank how to Increment + 1 value in People filed.

 

Thanks

CNT
Community Champion
Community Champion

@Dhinesh28R Change the Set to this,

With({varRP:LookUp(List,Field=Gallery.Selected.Field,People)},
Set(RP,If(IsBlank(varRP),1,varRP))
);

@CNT , Its getting values in RP man.. But not updating on a List man.

CNT
Community Champion
Community Champion

@Dhinesh28R Check if LookUp(List,Field=Gallery.Selected.Field) is blank.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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