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 / Create collection table
Power Apps
Answered

Create collection table

(0) ShareShare
ReportReport
Posted on by 173

Dear All,

 

I would like to prepare a Collection filled by calculation data. My problem that the code bellow doesn't working and I understand why not but I don't have idea to solve it.

 

Collect(
 Calculations,
 Sort(
 Table(
 {
 Result: Calculated_Output_Label.Text,
 Time: Now(),
 Type: Calculation_Selector.Selected.CalcType,
 SampleID: Sample_ID_Textinput.Text,
 Inspection_method_ID: "data soon",
 UserUPN: MyUserData,
 Parameter: Field_1.Text,
 Parameter: Field_2.Text,
 Parameter: Field_3.Text,
 Parameter: Field_4.Text
 }
 ),
 Time,
 Ascending
 )
)

 

 I show you an example what is similar then the table what I currently need.

ParameterResultTimeTypeSampleIDInspection method IDUserUPN
Param1109/1/2021 12:00 AMType_111223344data soonuserupn@company.com
Param2209/1/2021 12:00 PMType_111223344data soonuserupn@company.com
Param3309/1/2021 12:00 PMType_111223344data soonuserupn@company.com
Param4409/1/2021 12:00 PMType_111223344data soonuserupn@company.com
Param1119/1/2021 12:10 PMType_244332211data soonuserupn@company.com
Param2219/1/2021 12:10 PMType_244332211data soonuserupn@company.com
Param3319/1/2021 12:10 PMType_244332211data soonuserupn@company.com
Param4419/1/2021 12:10 PMType_244332211data soonuserupn@company.com


Can you help me?

 

Thank you in advance.

Categories:
  • Verified answer
    akosbanar Profile Picture
    173 on at

    I could solve it.

    Sort(
     Collect(
     Calculations,
     Table(
     {
     Parameter: Field_1.Text,
     Result: Calculated_Output_Label.Text,
     Time: Now(),
     Type: Calculation_Selector.Selected.CalcType,
     SampleID: Sample_ID_Textinput.Text,
     Inspection_method_SAP_ID: "data soon",
     UserUPN: MyUserData
     },
     {
     Parameter: Field_2.Text,
     Result: Calculated_Output_Label.Text,
     Time: Now(),
     Type: Calculation_Selector.Selected.CalcType,
     SampleID: Sample_ID_Textinput.Text,
     Inspection_method_SAP_ID: "data soon",
     UserUPN: MyUserData
     },
     {
     Parameter: Field_3.Text,
     Result: Calculated_Output_Label.Text,
     Time: Now(),
     Type: Calculation_Selector.Selected.CalcType,
     SampleID: Sample_ID_Textinput.Text,
     Inspection_method_SAP_ID: "data soon",
     UserUPN: MyUserData
     },
     {
     Parameter: Field_4.Text,
     Result: Calculated_Output_Label.Text,
     Time: Now(),
     Type: Calculation_Selector.Selected.CalcType,
     SampleID: Sample_ID_Textinput.Text,
     Inspection_method_SAP_ID: "data soon",
     UserUPN: MyUserData
     }
     )
     ),
     Time,
     Ascending
    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard