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

Sorting List Rows by Related Table Value

Hi, can someone please clarify the correct syntax / way to sort a 'list rows' action on dataverse, by the value of a related table?

In my example, I have a table of alerts, and would like the data sorted by the 'new_eventtype' label value (choice column) on the related 'cr164_IncidentReport' table.

Is this possible?

henrylamborn1_0-1656069335543.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @henrylamborn1 ,

 

At my knowledge , the data cannot sorted by the 'new_eventtype' label value.

But the data can sorted by the 'new_eventtype' value. Please see the screenshot:

vxiaochenmsft_0-1656399689549.png

vxiaochenmsft_1-1656399707323.png

 

So I think you could try to modify your choice value.

If your choice lable is ['1','2','3'], you could set value to [886370000,886370001,886370002].

If your choice lable is ['1','3','2'], you could set value to [886370000,886370002,886370001].

vxiaochenmsft_2-1656399861939.png

 

Maybe there is an easier method...But I haven't found it yet.

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @henrylamborn1 ,

 

At my knowledge , the data cannot sorted by the 'new_eventtype' label value.

But the data can sorted by the 'new_eventtype' value. Please see the screenshot:

vxiaochenmsft_0-1656399689549.png

vxiaochenmsft_1-1656399707323.png

 

So I think you could try to modify your choice value.

If your choice lable is ['1','2','3'], you could set value to [886370000,886370001,886370002].

If your choice lable is ['1','3','2'], you could set value to [886370000,886370002,886370001].

vxiaochenmsft_2-1656399861939.png

 

Maybe there is an easier method...But I haven't found it yet.

 

Best Regards,

Wearsky

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,770)