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

How to Filter / Sort Gallery

I am building a Power App that will fetch data from a SharePoint list.


Columns in SharePoint list

Project Name - Lookup Column 
Year - Choice column
Month - Choice column
Billable hours - Single line of text (only numbers used)


I would like to filter the gallery and show the following values

 

YearProject NameThis Month  Last 3 months  Last 6  months
2022ABC02.0031.05 62 .05



Ex:
Sep - 10.00 hrs
Oct - 11.00 hrs
Nov - 10.05 hrs

Dec - 02:00 hrs
---

I am not sure if this is doable with the current column setup.  I need some suggestions on this.


Thank you, 

 

1 REPLY 1
Chitrakant27
Resolver II
Resolver II

Hi @Jean_9681 ,

 

Take a one dropdown and in item property of dropdown code - Choices[@d_sourcename].Year)

 

and apply below code in item property of gallery

SortbycolumnFilter(D_Sourcename,Startwith(Year,dropdown.selected.value)),'ID',Descending) 

 

If you share some screen short that will be better if code not run

Thanks,

Chitrakant27

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,681)