cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kaushals2610
Frequent Visitor

undefined

Hi everyone,

I am facing a problem in groupBy.So first up I have acoolection named myprops4 which looks like below:

Kaushals2610_0-1615196640842.png

then I grouped this by type :

Kaushals2610_1-1615196733990.png

now in this group I have:

Kaushals2610_2-1615196817646.png

I want to group this data by sort order all at once.How can I do it?Please give some ideas.

Thanks in advance.

Kaushal Sharma

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@Kaushals2610 

Consider the following:

 

GroupBy(
   SortByColumns(MyProps4, "sortOrder"),
   "type", 
   "_records"
)

Your _records table should then be sorted as you like.

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

1 REPLY 1
RandyHayes
Super User III
Super User III

@Kaushals2610 

Consider the following:

 

GroupBy(
   SortByColumns(MyProps4, "sortOrder"),
   "type", 
   "_records"
)

Your _records table should then be sorted as you like.

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (42,224)