web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to get data in the...
Power Apps
Answered

How to get data in the form of a single value rather than a table inside collection column

(0) ShareShare
ReportReport
Posted on by 1,247 Super User 2024 Season 1

Dears,

 

I am using a ForAll function but it returns the data as a table. How can i convert it into a single column

 

This is how the data is returned

Anonymous_Hippo_0-1653505675296.png

Anonymous_Hippo_1-1653505686002.png

All these tables only have one record.

 

I would like this collection to look like this

 

DrRDate | Drid | ID

5/3/2022 | 2 | 2

2/2/2022 | 1 | 1

 

This is the formula that i am using

 

ForAll(
 col_Sample,
 ForAll(
 Split(
 'Deficiency #',
 Char(10)
 ),
 Collect(
 Test212,
 {
 ID: ID,
 Drid: Result,
 DrRDate: Last(
 FirstN(
 Split(
 'DR Received Date',
 Char(10)
 )
 )
 )
 }
 )
 )
);

 

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,636 Super User 2026 Season 1 on at

    HI @Anonymous_Hippo ,

     

    Try calling the column in the record:

    ForAll(
     col_Sample,
     ForAll(
     Split(
     'Deficiency #',
     Char(10)
     ),
     Collect(
     Test212,
     {
     ID: ID,
     Drid: Result,
     DrRDate: Last(
     FirstN(
     Split(
     'DR Received Date',
     Char(10)
     )
     )
     ).Result
     }
     )
     )
    );

     

  • Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    Sorry ,May i ask one more question @BCBuizer !

     

    I am trying to recreate a collection by splitting it based on Char(10)

    For example this is the original collection

    Anonymous_Hippo_0-1653579491369.png

    I want to create a new collection that would basically loop though and make each date into a single row

    This is how i want it to look

     

    ID | DRDueDate

    1 | 1/2/2022

    1 | 5/5/2022

    1 | 2/4/2022

    2 | 1/2/2022

    2 | 5/5/2022

     

    How can i do that. Using two forall loops doesn't seem to work correctly, can you please help 🙂 This is my corrected formula

    ForAll(col_Sample,
     ForAll(
     Split('Deficiency #',
     Char(10)
     ),
     Collect(
     Test2121,
     {
     ID: ID,
     Drid: Result,
     DrRDate: Last(FirstN(
     Split(
     'DR Received Date',
     Char(10)
     ),CountRows(Test2121)+1)
     ).Result
     }
     )
     ))
    ;

     

  • Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    @BCBuizer Please disregard my previous question. I was able to figure out why it was not working . Thank you !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard