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 / Filter wrong data to G...
Power Apps
Answered

Filter wrong data to Galery

(0) ShareShare
ReportReport
Posted on by 599

Hi,

i filtered my gallaery based on month, year and department by dropdown.

 

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

SureshJava1

 

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

 

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 fomula for filtering data into my gallery

 

Is display wrong result instead of .net it showing java.

 

Is anything wrong in my formaul?

 

Thanks,

Dhinesh

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dhinesh28R 

    Your formula is essentially fine.  I would suggest the following just to boost performance a little:

    SortByColumns(
     FirstN(
     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)
     ), 
     5
     ),
     "Count", Descending
    )

     

    As for the wrong department, this is going to hinge on the Dropdown1 selection.  I would look over the items property of your dropdown and make sure you are filtering on the proper column of that selected item from the dropdown.

     

    I hope this is helpful for you.

  • Dhinesh28R Profile Picture
    599 on at

    Hi @RandyHayes ,

    It's working fine man. but i want a Creatorname 's Department.

    In list it stores RecieverName Department.

    But actually i want a dropdown selction for Creator Department records stores in Gallery.

    Is this Possible?

     

    Thanks,

    Dhinesh

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dhinesh28R 

    So what is the relationship of creatorname and receivername to the department?

    What is the items property of the dropdown?

  • Dhinesh28R Profile Picture
    599 on at

    HI @RandyHayes,

    I created column for CreatorDepartmnt.

    Now its filtering correct Data man.

     

    Thanks,

    Dhinesh

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard