Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Gallery display inspections that have not been completed this month

I have two SharePoint Lists. One to many relationship. FireExtinguisherInfo (FEI) has an entry for each Fire Extinguisher. FireExtinguisherInspections (FEIN) has the multiple inspections for each extinguisher. I need a gallery to display FEI's that do NOT have an entry in FEIN's InspectionDate for the current month/year. The InspectionDate display's the date list this way mm/dd/yyyy.


This what I would like to happen:

Open screen and on that screen will be a dropdown with only the months available (if they want to search for previous months). The screen gallery will default to the current month/year and display the FEI's that do not have an entry in FEIN for this month/year.


Resident Rockstar
Resident Rockstar

Re: Gallery display inspections that have not been completed this month

How is the data stored in your data source for the last inspection? Is it one column for year and one column for Month or is it a date in one column?

For one column each, it would look something like this:




(**The above code will show inspections that took place the current month of the last year, if you want to filter those out as well change the <= in the month argument to <>)


If it's just a date type, you could do this:






Helpful resources

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!


Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.


Super Users Coming in August

We are excited for the next Super User season.


Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,499)