cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Updating a specific column item

Hi there i have the list as seen below: 

specifikke kolonner.PNGI would like to be able to update the 'Menu' column, but not the entire column or all of the elements within it a specfic one. For example "Mandag"(Read: Monday). Say i want to change the Menu column text for Monday, is there a smart way to do this. 

I was thinking maybe something along the lines of: 

Patch(Listname; Lookup(Listname;Day=Monday;Menu)Textinput.text) 

If this makes any sense what so ever, if someone has a good idea of how one could do this, it would be of tremendous help 🙂 

Thanks in advance. 
- Tobi

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@Anonymous 

Yes, the UPDATEIF function is a good way to do this 🙂

 

UpdateIf(Listname; Day="Mandag", {Menu: Textinput.text})

 

---
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."

View solution in original post

5 REPLIES 5
mdevaney
Super User III
Super User III

@Anonymous 

Yes, the UPDATEIF function is a good way to do this 🙂

 

UpdateIf(Listname; Day="Mandag", {Menu: Textinput.text})

 

---
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."

View solution in original post

Anonymous
Not applicable

@mdevaney 

Thanks for the response,

Hmm, it doesn't really do anything, however it doesn't show any errors what so ever it just does not update, as if it doesn't recognise that Day = Monday, even though it is. 

I have a datasource within the app that is called monday as well do you think this could be the issue, or maybe the Monday needs "", to make it understand that it is a text value? 🙂 

Thank you 
- Tobi 

@Anonymous 

Yes, I think the quotes are what is needed here.  I modified your previous statement which did not have quotes so I didn't notice they were missing 🙂

 

I have now updated my previous post.

kavya__
Frequent Visitor

and where do we write this particular function, on the update property of the datacard ?

@kavya__ 

Please start a new thread. This one is old and the original poster is gone.

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,271)