I have 3 Collection columns which may or may not contain multiple values separated by ";". I want to grab each of the values in another collection for display purposes.
Example:
I want to collect these columns into Collection2 as:
Having trouble figuring out how to approach this.
Any ideas?
Thank yoU!
Hi @ericonline,
Could you please share a bit more about your scenario?
Based on the needs that you mentioned, I have made a test on my side. I afraid that there is no way to achieve your needs in PowerApps currently.
Currently, within PowerApps, there is no available functions supported to achieve your needs.
Best regards,
Hi @ericonline
I'm confident that we can definitely accomplish this in PowerApps!
Just a couple of questions. Will Collection1 only ever contain a single record? If this is the case, it'll make this job simpler. I also hope that Collection1.Column1 will always contain a full list of actions. This logically makes sense to me, because there must always be an Action against which we can assign an ActionDate and Responsible Party.
If this is the case, we can Split First(Collection1).Column1 by ";".
ClearCollect(colCollection1Split, Split(First(Collection1).Column1,";") )
This would provide us with the base table on which we can loop over with a ForAll. Something like this would provide us with the sequential ID "RowNumbers".
ForAll(colCollection1Split, Collect(colCollection1Numbered, Last(FirstN(AddColumns(colCollection1Split, "RowNumber", CountRows(colCollection1Numbered)+1 ), CountRows(colCollection1Numbered)+1 ) ) ) )
Within this loop, we can incorporate this snippet that @CarlosFigueira posted today to extract the corresponding values from Column2 and Column3.
I'm a bit busy right now and unfortunatly don't have too much time to look into this in much detail. But these are the pieces that I would use to solve this. Hope that's of some use to you.
Hi @timl,
RE: Will Collection1 only ever contain a single record?: No, it could consist of multiple records.
RE: Will Collection1.Column1 always contain an "Action": Yes
Thank you for taking time to put your expertise into this!
I will work through your answer and follow up.
Yay!
Ugh! Still hammering away on this silly thing.
Problem:
User Experience + App Functions:
ClearCollect(colPartialForm, Filter(sharepointList, Status = "Incomplete" ) ); ClearCollect(colSubGalleryInForm, { action: If(!IsBlank(First(colPartialForm).actions), Split(First(colPartialForm).actions, ";")), schedule: If(!IsBlank(First(colPartialForm).schedule), Split(First(colPartialForm).schedule, ";")), party: If(!IsBlank(First(colPartialForm).party), Split(First(colPartialExercise).party, ";")) } )
I'll attack it again tomorrow!!
Cheers!
@ericonlinethis look somewhat similar to this post that @Mr-Dang-MSFT solved masterfully!
Not sure it completely relates, but if you missed that post - definitely a formula to put in your back pocket.
User | Count |
---|---|
165 | |
90 | |
73 | |
64 | |
62 |
User | Count |
---|---|
211 | |
153 | |
96 | |
87 | |
66 |