cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Robertjde
Helper V
Helper V

sort a gallery

I want to sort my gallery by the largest number, but my formula doesn't work.

 

Who can help me change my formula?

 

Gallery Items:

Filter(SortByColumns('QA Vorfallmelder';"Anlagenstillstand";SortOrder.Descending);DatePicker_VON.SelectedDate<=Datum && DatePicker_BIS.SelectedDate>=Datum)

 

sortgallery.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
SkiDK
Solution Sage
Solution Sage

Hi @Robertjde 

Try this

Sort(
  Filter(
    'QA Vorfallmelder'; 
    DatePicker_VON.SelectedDate<=Datum && DatePicker_BIS.SelectedDate>=Datum
  ),
  "Anlagenstillstand";
  Descending
)

View solution in original post

6 REPLIES 6
SkiDK
Solution Sage
Solution Sage

Hi @Robertjde 

Try this

Sort(
  Filter(
    'QA Vorfallmelder'; 
    DatePicker_VON.SelectedDate<=Datum && DatePicker_BIS.SelectedDate>=Datum
  ),
  "Anlagenstillstand";
  Descending
)

View solution in original post

@SkiDK  Unfortunately does not work.
I tried to swap Sort for SortByColumns, but that was also unsuccessful

 

The greatest value does not come first

 

sortgallery2.PNG

Hey @Robertjde ,

Could you show what the error tells?

@SkiDK  It was just a connection error to the data base

sortgallery3.PNG

Hi @Robertjde 

I don't really see what is wrong with the formula. Looks alright. Unless you're accidently sorting on a wrong column.

Is "Anlagenstillstand" the same as "Ausfall" as column?

Oh, that gave me the idea to look at the formatting of the column.
This was formatted as text, now your formula runs as desired!
Thank you @SkiDK 

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

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

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (66,251)