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 / Error filtering data b...
Power Apps
Answered

Error filtering data by selected calendar date

(1) ShareShare
ReportReport
Posted on by 38

Hi ,

Im a beginner to Power Apps and I’m building a staff weekly schedule calendar in Power Apps. The calendar shows dots on dates that have programs. When a user selects a date, I want to display all program details for that date in a gallery on the right side.

My data source is an Excel table (Table1_1). I tried using this formula in the gallery Items property:

Filter(Table1_1, Program = _dateSelected)

But I get this error:

“Invalid filter clause: unsupported operation. Only 'eq', 'ne', 'contains', 'startswith' or 'endswith' is currently supported.”

I used this to connect the dates to the calandar 

 

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

How can I correctly filter the gallery by the selected calendar date so that when a user clicks a date, the programs for that date appear on the right side?

Thank you 

error .png
error 2.png
Categories:
I have the same question (0)
  • Mitanshu Profile Picture
    1,658 Moderator on at
    Is the Session Date column in Excel a Date column or a Text column or a DateTime column?
     
    Can you try:
     
    Filter(
        Table1_1,
        DateValue('Session Date') = _dateSelected
    )
     
    Note:

    1- Excel as a Power Apps data source is very limited in the functions it supports for delegation and filtering

    2- I strongly recommend to NOT use Excel as a data source for serious applications. Excel isn't recommended even for prototypes!
  • Verified answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Firstly @Mitanshu is correct in that Excel is really the "data source of last resort" and will cause you more problems than this, especially with dates and also once the table gets bigger. If you have access to SharePoint Lists, I suggest you change to one of these.
     
    Apart from the question on how you are storing the date in Excel (I assume as Text as DateValue works for you), but the item you have not included is how you define _dateSelected as the error is a bit strange.
  • Verified answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn   

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