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 / Sort Distinct Filter N...
Power Apps
Answered

Sort Distinct Filter Not Working

(0) ShareShare
ReportReport
Posted on by 29

I have trouble to arrange number in order. Here is the code

 

Sort(
Distinct(
Filter(
Mastercopy_1,
SYSTEM = Dropdown1.Selected.Result,
'Sub System'= Dropdown4.Selected.Result,
'EQUIPMENT TYPE'= Dropdown5.Selected.Result,
COMPONENT= Dropdown6.Selected.Result
),
'OPERATING TEMP (°C)'
),
Result,Ascending
)

 

and this is the result

Batrisyia__0-1602557983728.png

 

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    The sorting is being done alphabetically - so it seems like the column 'OPERATING TEMP (°C)' is a text column.

    To sort it numerically, you can sort based on its numeric value, using the Value function to convert the Result field (from the Distinct function) into a number:

    Sort(
     Distinct(
     Filter(
     Mastercopy_1,
     SYSTEM = Dropdown1.Selected.Result,
     'Sub System' = Dropdown4.Selected.Result,
     'EQUIPMENT TYPE' = Dropdown5.Selected.Result,
     COMPONENT = Dropdown6.Selected.Result
     ),
     'OPERATING TEMP (°C)'
     ),
     Value(Result),
     Ascending
    )

    Hope this helps!

  • Batrisyia_ Profile Picture
    29 on at

    Yes it's working! Thank you very much!

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!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard