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

Notifications

Announcements

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard