cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Responsive Resident
Responsive Resident

How to remove a row from a record

Hi all,

 

I know how to remove records from a collection, but not rows from records set to a variable; unless of course the answer is to put the record into a collection, dropcolumns, then get the record again...

 

Any help is appreciated.

Thanks

2 REPLIES 2
RandyHayes
Super User
Super User

@dlprentice 

Rows don't have records...a Record is a Row.  

Are you trying to state that you have a column in your Record that has a table in it?

 

If so, either way (even with the collection) you cannot alter that directly.  You would need to re-assign it if it is a variable.  If it is a Collection record, then you would need to update the primary row/record of the collection.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hey @RandyHayes,

 

I think I misspoke; I figured out what I was trying to do though. I had a row that I grabbed from a datasource using a lookup. I wanted to drop one of its "columns".

 

Perhaps there is an easier way but here is how I got my result that I wanted:

 

Set(gblData,{Id:1,OP:2,SO:3})

dlprentice_0-1661864659382.png

dlprentice_2-1661864681847.png

 

With({_data:DropColumns(Table(gblData),"Id")},Set(gblData,LookUp(_data,SO=3)))

dlprentice_1-1661864668036.png

dlprentice_3-1661864699134.png

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,486)