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

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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,865)