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

Filter a datatable from a selection of another

(0) ShareShare
ReportReport
Posted on by 262

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,687 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
    262 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,687 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
    262 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
    262 on at

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

  • Skybluekid Profile Picture
    262 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

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard