web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Build Months of the Ye...
Power Apps
Unanswered

Build Months of the Year in gallery and then filter based on click

(0) ShareShare
ReportReport
Posted on by 1,512

I am trying to recreate something like this in my powerapps

Dorinda_0-1657648396110.png

I thought by putting nested galleries I could recreate it 

Dorinda_2-1657648652061.png

Looks great except I am not sure how to filter it since the months are coming from a separate list in SharePoint, as I could not figure out how to just apply the months to the gallery.

 

I need to filter the information two ways, one by the user logged in and two by the combobox1_1.

 

I had uses something similar in another app with this code on the parent gallery 

If(
 !IsBlank(ComboBox1.Selected.'Customer Name'),

 Distinct(
 SortByColumns(
 Filter (
 LoadForecastData_1,
 Customer = varCompanyName And Year >= 2019
 ),
 "Year",
 Ascending
 ),
 Year
),





Distinct(
 SortByColumns(
 Filter (
 LoadForecastData_1,
 Customer = varCompanyName And Year >= 2019 
 ),
 "Year",
 Ascending
 ),
 Year
))

and this code on the Child

SortByColumns(
 Filter (
 LoadForecastData_1,
 Customer = varCompanyName && 
 (IsBlank(Dropdown2.Selected.CustID) || CustID = Dropdown2.Selected.CustID) &&
 Year = ThisItem.Result
 ),
 "Year",
 Ascending,
 "i6fq",
 Ascending
)

I have also tried the groupby option on another app with this code on the parent

GroupBy(Filter(ChairSurvey_1,'Service Year'=2022),
 "Survey_x0020_Type",
 "Surveytypes"
)

and this code on the child

Filter(ThisItem.Surveytypes, ChairPerson.DisplayName=ComboBox2.Selected.Chairperson.DisplayName)

I can't get either to work

This is what is showing on the two galleries now

GroupBy(Filter('POWER SYSTEM ELECTRICIAN Work Hours',Year>=2020),"Year","Years")

and this on the child

Months

 

I just cant figure out how to get this to all work.

Categories:
  • Dorinda Profile Picture
    1,512 on at

    Ok I am getting closer this worked for part of it

    GroupBy(Filter('POWER SYSTEM ELECTRICIAN Work Hours', 'Apprentice Name' = Upper(varCurrentUserFullName),Year>=2020),"Year","Years")

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard