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 for LineItems f...
Power Apps
Answered

Filter for LineItems for filtering ID in expenses app

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

@StalinPonnusamy ,

 

 

Hi all, hope you are doing well, 

I'm working on expenses app, I tried using

(Filter(LineItems,ID=SelectedLineItems.ID))

for filtering ID (Report ID) from LineItems list, but it is not working looking for solution.

Monishayuvaraj_0-1639670322287.png

The filter should be capable of showing all Lineitems under same ID.

 

Kindly help me get solution for the above problem.

 

Thank you,

Monisha

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

    @Anonymous 

    What is your Datasource?  And, if SharePoint, then the ID column value will be unique to each record and your results would only be one record (if at all).

    You should have a column in your LineItems table that stores the ID of the ReportID from the parent record.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RandyHayes ,

     

    My data source is Sharepoint list, and it have unique report ID

    Monishayuvaraj_0-1639670927294.png

    For example, all lineitems in Report ID 42 should be displaying for that filter?

    looking forward for the solution

     

    Thank you,

    Monisha

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    HI @Anonymous 

     

    Need to filter the ReportID which has a lookup to master SP list

     

     

    Filter(LineItems, ReportID.Id = SelectedReport.ID)

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    So then your formula needs to be:

       Filter(LineItems, ReportID =SelectedLineItems.ID)

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @StalinPonnusamy@RandyHayes ,

     

    Thank you very much for the above response.

    I get similar error with both the codes,

    Filter(LineItems, ReportID =SelectedLineItems.ID)

     

    Filter(LineItems, ReportID = SelectedReport.ID)

     

    Monishayuvaraj_0-1639671792718.png

    Looking forward for the solution.

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    What kind of column is ReportID ?

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    We assume you are filtering lineitems based on the master (Another SP selected item). And Parent is a single selection.

     

    Filter(LineItems, ReportID.Id = SelectedReport.ID)

      

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RandyHayes ,

     

    Report ID, is a column from Line Items SP list which contains lookup with expenses SP list.

     

    Thank you, 

    Monisha

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    I would avoid a lookup column in this case as you only need the numeric column to store the ID.

    But, your formula would be:

       Filter(LineItems, ReportID.Id =SelectedReport.ID)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @StalinPonnusamy ,

     

    Thank you very much, it is working fine but getting delegation warning sir.

     

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 414

#2
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard