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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,169)