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 a datatable fro...
Power Apps
Answered

Filter a datatable from a selection of another

(0) ShareShare
ReportReport
Posted on by 256

Hi All,

 

I have a datatables, which contain a PO number.  When I select a row, I would lie to pass that value to filter another Datatable, which contains PO number

 

Any help would be appreciated

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Hi @Skybluekid - just so I understand, you want to filter a Gallery based on the selection of another Gallery?

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution

    If you like my response, please give it a Thumbs Up.

  • Skybluekid Profile Picture
    256 on at

    Hi @Amik

    No I am using Datatables, not Gallery

  • Verified answer
    developerAJ Profile Picture
    4,763 on at

    @Skybluekid 

     

    Please refer below formula

     

     

    second datatable item Property: Filter( datasource,IsBlank(DataTable1.Selected.PO) ||PO=DataTable1.Selected.PO)

     

     

    Please click Accept as solution and Thumbs Up. if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @Skybluekid - you can try the below in the items property of the Data Table to be filtered (e.g. filter Data Table 2 based on a selection in Data Table 1)

     

     

     

    Filter(
     'Your Data Table 2',
     IsBlank('Your Data Table 1'.Selected) || 'Your PO Column' = DataTable1.Selected.'Your PO Column'
    )

     

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution

    If you like my response, please give it a Thumbs Up.

  • Skybluekid Profile Picture
    256 on at

    Thank you @developerAJ .  Just one other, I have a toggle which filters out orders that filters out only delivered items on the second datatable.  I am using the following: 

    Skybluekid_0-1685689652901.png

     

  • developerAJ Profile Picture
    4,763 on at

    @Skybluekid 

     

    Output of the second query is 

    when you turn on toggle it will filter items using status column and give you items with status as Delivered.

     

    if toggle is off it will give all items. i hope that's what you are looking for

  • Skybluekid Profile Picture
    256 on at

    That is correct, but it seems not to be working, am I doing anything wrong?

  • Skybluekid Profile Picture
    256 on at

    @developerAJ 

    Do worry I have sorted it!

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
Kalathiya Profile Picture

Kalathiya 419

#2
WarrenBelz Profile Picture

WarrenBelz 397 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 345 Super User 2025 Season 2

Last 30 days Overall leaderboard