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

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,297 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,297 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

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard