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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,743)