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 / How to filter a table ...
Power Apps
Answered

How to filter a table on the screen based in another field of same screen

(0) ShareShare
ReportReport
Posted on by 2

On one of my screen having display - FormViewer and connected to sharepoint list - working fine.
on the same screen I have inserted table and trying to filter based on the one of the field of formViewer


when I am applying filter based on the primary field of the list, it is working fine
Filter(TblBreakDown,SubRecoNo=DataCardValue24.Text)


BUT when I am applying filter based on another field, it is not working, no result appears
Filter(TblBreakDown,FormNo=DataCardValue24.Text)

 

For testing purpose I put the numeric same value in the SubRecoNo and FormNo - like 1,2, 3 etc

 

Please advise, in both situation if numeric or text, how to apply filter on table based on the value of a field in the display viewer.

Below image for fast reference :

 

MIA27_0-1657743075221.png

 

 

 

 

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

    @MIA27 

    Is your column defined as text or number?

    If numeric, consider the following instead:

    Filter(TblBreakDown, FormNo = Value(DataCardValue24.Text))

    PowerApps will typically convert text to number and the other way around as needed, but sometimes this does not yield what you expect.

     

    I hope this is helpful for you.

  • MIA27 Profile Picture
    2 on at

    Sorry, I  tried, no error, no result.

    The field in the list "FormNo" is numeric but as it is a lookup field, generally it get converted to Text when exported, This is the practical experienced I had and did correspondence for this strange change in community of sharepoint.

     

    For the current screen situation, lets consider the FormNo as a text, then please advise what changes to be done to obtain the result

     

  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    When you put 

    Value(DataCardValue24.Text)

    into a label are you getting the value you expect?

    If no, this is where your issue is, if yes then try this:

    Filter(TblBreakDown, FormNo = {Value: DataCardValue24.Text})

    I am suggesting that because you said it is a lookup field. 

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • MIA27 Profile Picture
    2 on at

    Thank you for your advise,

    I tried below on the label and it brings the perfect result

     

    Value(DataCardValue24.Text)

     

    Filter(TblBreakDown, FormNo=Value(DataCardValue24.Text))

    No result found and no error.

     

    Then tried your next tips 

    Filter(TblBreakDown, FormNo = {Value: DataCardValue24.Text})

    This brings no record and no error.

     

    Please advise

     

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @MIA27 ,

     

    Please try and find the Item property of the Form, copy it into the Filter:

    Filter(TblBreakDown, FormNo = FormItem.FormNo) 
    //FormItem refer to the formula within Form's Item property

     

    Best regards,

  • Verified answer
    MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    In that case @MIA27 , try the following:

     

    Filter(TblBreakDown, FormNo = FormItem.FormNo)

    Replacing FormItem with you item you are trying to filter on, not DataCardValue24 but the name of that Item. 

  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    @v-jefferni Sorry, I did not realise we had the same suggestion!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard