web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter SP List B where...
Power Automate
Unanswered

Filter SP List B where field matches with SP List A and count occurrence to output to HTML table for each item in List A

(0) ShareShare
ReportReport
Posted on by 49

Hi All, I have hit a brick wall with this one, hoping someone can put me on the right track to build a solution, there are posts trying to achieve something similar but not quite the same and I am falling down after the filter component.

 

 

List A 'Vehicle Register'

  • (Unique vehicles - Vehicle Rego number located in Field 'Title')

List B 'Vehicle Inspection Register'

  • Field: 'Vehicle' - drop-down selection choosing the Rego number from 'Vehicle Register' - 'Title' field

 

I want to create an HTML report to send in an email showing how many inspections have been completed for each vehicle in List A. I want to do it this way so we can report all vehicles in our fleet (20) and easily identify which ones have or haven't had inspections completed and for those that have, how many times. 

Vehicle 11
Vehicle 20
Vehicle 33
Vehicle 42

 

This flow would be set up as a fortnightly occurrence, and I am happy with applying this date filter in the get items stage. Where i fall down (due to a lack of understanding) is after the Apply to Each (Output from Get Items - List A) and applying the filter array where List B Items 'Vehicle' equals List A 'Title' how to bring the results to structure the rows in the HTML output. 

 

Thanks in advance! 

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at
    Re: Filter SP List B where field matches with SP List A and count occurrence to output to HTML table for each item in List A

    Hi @CrazyCol ï¼Œ

    Could you please post the screenshots of your two lists?

    I would like to know how you can tell if a vehicle inspection is done and when it is not?

    Is there also a status column for 'Vehicle Inspection Register'?

    The more information you provide, the more likely it is that I can help you solve this problem ...

    Best Regards,

    Sunshine Gu

  • CrazyCol Profile Picture
    49 on at
    Re: Filter SP List B where field matches with SP List A and count occurrence to output to HTML table for each item in List A

    Hi @v-yetonggu-msft 

     

    Essentially it is set up like a one-to-many relationship, but they are independent except for the vehicle registration. When a user conducts an inspection on their vehicle, they choose their vehicle from the drop-down list, which is referenced to the vehicle register.

     

    Either a vehicle inspection has been done or not done, evidenced by a line item with the Vehicle Rego in the vehicle inspection register. I was considering just reporting from the Vehicle Inspection Register grouping unique vehicle Rego and counting their occurrence, but I also want to highlight vehicles that have had no inspections completed, hence my reference back to the vehicle register. 

     

    There is no status. column in the vehicle inspection register 

     

    Vehicle Register (Field Title - (labelled registration)

    CrazyCol_4-1710998593342.png

     

     

    Vehicle Inspection (Field Vehicle - drop down list to 

    CrazyCol_1-1710998433788.png

     

    thanks

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard