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 Function not wo...
Power Apps
Unanswered

Filter Function not working correctly

(0) ShareShare
ReportReport
Posted on by 18

hari27pn_0-1704792004396.png

I'm trying to concat the material description from my Excel Table named "Table1" by filtering the table by Item ID = DataCardValue10.Text and the PO Item selected from the combobox(which you can see in the fig).


 = Concat(Filter(Table1, 'PO.Item' in ComboBox.SelectedItems, 'PO.No.' = DataCardValue10.Text), 'Material Description', " & ")

This is the formula I used but it is giving me no data while the data exists in the Excel Sheet.

Please help me with this.

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    is it =concat(Filter.... that you use, or was it a typo?

  • hari27pn Profile Picture
    18 on at

    There's no typo here. Plus, there's no issue in the code I used in application.

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @hari27pn,

    Could you please check if there is any record returned by your Filter() function?

    How you set the Items property of the ComboBox?(Important!)

     

    If  'PO.Item' is a General tex column in your excel table, I have tested on my side and your formula works:

    vqiaqimsft_0-1704807772247.png

    Note that I set the ComboBox Items property as carNumbers.Title directly.

  • hari27pn Profile Picture
    18 on at

    See your screenshot above shows concatenating items based on one logic statement. I have to use two logic statements in my problem.
    If I use one logic statement, I do get the output.
    But when I put two conditions, I get no data as output. Which isn't true as the data exists in my Excel sheet.

    My Combobox items property 
    If(IsBlank(DataCardValue10.Text),Blank(),Filter(Table1,PO_No = DataCardValue10.Text).PO_Item)

    My material description default property
    Concat(Filter(Table1, PO_No = DataCardValue10.Text && PO_Item in ComboBox4.SelectedItems), 'Item Description', " & ")

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @hari27pn,

    I just give you a sample function, and surely you need to check if there is any record retunred by your Filter() function.

     

    I think you have write a wrong if statement, Blank() returns different data structure with the one your Filter() function returned, you could try to modify your if statement as below:

    If(!IsBlank(DataCardValue10.Text),Filter(Table1,PO_No = DataCardValue10.Text).PO_Item)

    Then please try your formula

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard