cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhinesh28R
Post Patron
Post Patron

Filter Users Department into Gallery

Hi,

I filtered my gallery based on month, year and department by dropdown.

What i want is i need to filter Creator's Department from SPList.

I need a .net record in a gallery. But am getting java record.

The Following steps, i did.

 

This is my list,

createdDateCreatornamecreatorMailRecievermailRecieverNameDepartment
03-03-2021Sureshsuresh@test.comDani@test.comDaniJava
03-03-2021DaniDani@test.comsuresh@test.comSuresh.net

 

From this list i filter my data into gallery based on Month and Department(.net)

SureshJava1

But am getting Java Record.

This is a wrong result am getting while am selcting .net in a dropdown.

 

Am using follwing Formula ,
FirstN(SortByColumns(AddColumns(GroupBy(Filter(List,Month(CreatedDate) = Dropdown3_1.Selected.ID, Year(CreatedDate) =Dropdown6_1.Selected.ID && Department= Dropdown1.Selected.Value),"Creatorname","creatorMail","Details"),"Count",CountRows(Details)),"Count",Descending),5)

am using the above formula for filtering data into my gallery

 

Is display wrong result instead of .net But it is showing java  record.

 

Is anything wrong in my formula?

 

Thanks,

Dhinesh

 

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi @Dhinesh28R 

AddColumns(GroupBy(Filter(List, Month(CreatedDate) = Dropdown3_1.Selected.ID),"Creatorname","Creator"),"Department",Creator.Department,"Total",CountRows(Creator))

 

Response

ThisItem.Creatorname First(ThisItem.Department).Department ThisItem.Total

rubin_boer_1-1614867961456.png

 

 
 

View solution in original post

1 REPLY 1
rubin_boer
Super User
Super User

hi @Dhinesh28R 

AddColumns(GroupBy(Filter(List, Month(CreatedDate) = Dropdown3_1.Selected.ID),"Creatorname","Creator"),"Department",Creator.Department,"Total",CountRows(Creator))

 

Response

ThisItem.Creatorname First(ThisItem.Department).Department ThisItem.Total

rubin_boer_1-1614867961456.png

 

 
 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (36,706)