cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Numeric columns treated as string in function Sort

Hi all,

 

I am trying to sort a numeric column from my Excel sheet in descending order. It is a range from 1 to 38 so I would expect 38 as the first result. But instead I get 9. This means that the column is treated as a string column instead of as a numeric column.

 

Is that normal behavior when the data source is an Excel sheet? Is there a way to treat a column as numeric?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Numeric columns treated as string in function Sort

@AGroegelich 

I think there's a quick workaround here.  I'll have to do some research into whether its normal behaviour though.

 

Sort(your_datasource_name, Value(your_column_name), Ascending)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Numeric columns treated as string in function Sort

@AGroegelich 

I think there's a quick workaround here.  I'll have to do some research into whether its normal behaviour though.

 

Sort(your_datasource_name, Value(your_column_name), Ascending)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Highlighted
Helper III
Helper III

Re: Numeric columns treated as string in function Sort

Hi mdevaney,

 

Your workaround worked.

Meanwhile I found another workaround that also worked:

Max(Gebruikers.GbrID)

 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,688)