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 / Gallery filter not wor...
Power Apps
Answered

Gallery filter not working in Power Apps calendar screen

(0) ShareShare
ReportReport
Posted on by 38
Hii 
 
Im a beginner in Power Apps. I am building a weekly calendar for lecturers to see their weekly schedule in Power Apps using a vertical gallery.

I am using the following Power Fx formula to check if a session exists for a date:

!IsBlank(
LookUp(
Table1_1,
'Session Date' = DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)
)
)

The formula is supposed to check if there is a record for the session date.

However, I am getting an error when using it in my gallery.
My data source is an Excel table.
 
Can someone explain what might be wrong with this formula?
 
Thank you 
 
 
Power app error.png
Categories:
I have the same question (0)
  • Verified answer
    MParikh Profile Picture
    521 Super User 2026 Season 1 on at
    Hi @CU10030108-0,

    The issue is almost certainly a date type mismatch. Excel stores dates as serial numbers, and Power Apps reads them as text or number, not as a native Date type. So comparing 'Session Date' directly to a DateAdd() result fails because the types don't match.

     

    Try wrapping the column in DateValue() to force the conversion:

    !IsBlank(
      LookUp(
        Table1_1,
        DateValue(Text('Session Date')) = DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)
      )
    )
     

    If the column comes through as a number (Excel serial), use this instead:

    !IsBlank(
      LookUp(
        Table1_1,
        DateAdd(Date(1899,12,30), Value('Session Date'), TimeUnit.Days) = DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)
      )
    )
     

    A few things worth checking:

    1. Column name spacing. 'Session Date' with a space requires the single-quote syntax. Confirm that the column name in your Excel table matches exactly, including the case.

    2. Excel connection type. If you connected via "Excel Online (Business)," date columns sometimes come through differently than a static upload. Check the actual data type Power Apps infers by looking at the column in the Data panel.

    3. Time components. If the 'Session Date' field stores a datetime that includes a time portion, the equality check will fail even when the dates appear visually identical. Wrap both sides in DateValue() to strip the time.

    Thank you! 
    Proud to be a Super User!
    📩 Need more help?
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping

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 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard