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 / Dots Show on Wrong Dat...
Power Apps
Suggested Answer

Dots Show on Wrong Dates & Gallery Filter Not Matching Selected Date from Dataverse

(2) ShareShare
ReportReport
Posted on by 38
Hello,
 
Im a beginer in power I'm working on a Power App with a calendar template connected to a Dataverse Bookings table. I have two issues I cannot resolve:
 
My Setup :
 
  • Power app using the built-in Power Apps calendar template
  • Dataverse Bookings table with a `Session Date` column
  • `Session Date` is a Date only format, 
  • Calendar uses standard variables `_dateSelected` and `_firstDayInView`
 
Issue 1 — Dots appear but on inaccurate/wrong dates
 
I have this formula on the `Visible` property of `Circle2_2` inside `MonthDayGallery2_2` to show a dot when a booking exists on that calendar date:

CountRows(
    Filter(
        Bookings,
        DateValue(Text('Session Date', "mm/dd/yyyy")) = 
        DateValue(Text(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days), "mm/dd/yyyy"))
    )
) > 0
 
Dots do appear on the calendar, but they are showing on the wrong dates — they don't accurately match the actual session dates stored in the Bookings table.
 
Issue 2 — The gallery on the right side shows wrong records for the selected date
 
When a date is selected on the calendar, a gallery on the right side should show all bookings for that date. My `Items` formula for `Gallery1_1` is:

Filter(
    Bookings,
    DateValue(Text('Session Date', "mm/dd/yyyy")) = 
    DateValue(Text(_dateSelected, "mm/dd/yyyy"))
)
 
This is not working - the gallery either shows no results or displays records from a different date, not the one selected.
 
What I have already tried:
 
  • Changing `"mm/dd/yyyy"` to `"MM/dd/yyyy"` (uppercase MM for months) — did not fix it
  • Direct comparison: `Filter(Bookings, 'Session Date' = DateValue(_dateSelected))` — did not work
  • Setting a `varSelectedDate` variable in `MonthDayGallery2_2 OnSelect` using `DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)` and filtering with that — still incorrect results
  • Splitting comparison into `Year() && Month() && Day()` — still not returning accurate results
 
My Questions :

1. Is `DateValue(Text('Session Date', ...))` not delegable to Dataverse, causing it to only process the first 500 records? Could this be why dates are inaccurate?
2. Is there a known issue comparing Dataverse Date Only fields with the calendar template's `_dateSelected` variable?
3. What is the correct, delegable formula to filter a Dataverse Date Only field against a selected calendar date?
4. Does the `_dateSelected` variable in the calendar template store a Date or DateTime value, and could that mismatch be causing the filter to fail?
 
Thanks so much to anyone who takes the time to respond - I've been stuck on this for days and would really appreciate any help to get it sorted!
preview (1).webp
preview.webp

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    1) Is DateValue(Text('Session Date', ...)) non-delegable to Dataverse and causes only first 500 records?
    Yes — very often. Once any part is non-delegable, Power Apps can pull only the first 500/2000 records and filter locally, leading to incorrect results. This is exactly how delegation limits are described in Understand delegation in a canvas app - Power Apps.
     
    2) Known issue comparing Dataverse Date Only with _dateSelected?
    Not one single bug, but there are known pitfalls: time zone/date handling differences in apps (covered in Troubleshoot date and time issues in Power Apps canvas apps) formula composition order pitfalls when comparing dates (observed in Canvas Apps - Filtering on Date Fields).
     
    Formula
     
    With(
        { d: Date(Year(_dateSelected), Month(_dateSelected), Day(_dateSelected)) },
        Filter(
            Bookings,
            'Session Date' >= d &&
            'Session Date' < DateAdd(d, 1, TimeUnit.Days)
        )
    )
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Suggested answer
    Haque Profile Picture
    3,653 on at
     
    The issue with dots appearing on wrong dates in your calendar is likely due to how the date comparison is done in your formula. Using DateValue(Text(..., "mm/dd/yyyy")) can cause subtle mismatches because of locale, time zone, or formatting inconsistencies.
     

    Here is what we can try:

    Since Session Date is a Date only column (no time), and _firstDayInView plus ThisItem.Value gives a date, you want to compare dates directly without converting to text.

    Try this formula on the Visible property of Circle2_2:

    CountRows(
        Filter(
            Bookings,
            'Session Date' = DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)
        )
    ) > 0
    
     

    The root cause of your gallery showing wrong or no records for the selected date is similar to Issue 1: the date comparison using DateValue(Text(..., "mm/dd/yyyy")) can cause mismatches due to formatting or time components.

    How to fix your gallery’s Items formula:

    Instead of converting dates to text and back, compare the Session Date directly to the selected date variable _dateSelected, ensuring both are date-only values.

    Try this formula for Gallery1_1.Items:

    Filter(
        Bookings,
        'Session Date' = _dateSelected
    )
    
     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
     
  • WarrenBelz Profile Picture
    155,840 Most Valuable Professional on at
    Firstly @MS.Ragavendar is on the right track here - the only correction needed here for Delegation purposes is to get the DateAdd function out of the Filter
    With(
       {d: Date(Year(_dateSelected), Month(_dateSelected), Day(_dateSelected))},
       With({d1: DateAdd(d, 1, TimeUnit.Days)}, 	
          Filter(
             Bookings,
             'Session Date' >= d &&
             'Session Date' < d1
          )
       )
    )
     
    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  
  • Suggested answer
    timl Profile Picture
    37,214 Super User 2026 Season 1 on at
     
    On the basis that the 'session date' column in your Bookings table is 'date only', the following formula should work. As 'session date' is of data type date, there's no need to call DateValue/Text to convert it to a date.
     
    CountRows(
      Filter(Bookings, 
             'Session Date' = DateAdd(_firstDayInView,ThisItem.Value, TimeUnit.Days)
      )
    ) > 0 
     

    For Question 1, DateValue/Text is not delegable. This can be confirmed because the designer shows a delegation warning if we use this syntax.
     
     
    For Question 2, there are no known issues comparing Dataverse Date Only fields with the calendar template's _dateSelected variable
     
    For Question 3, the formula above is delegable against Dataverse. 
     
    For Question 4, the _dateSelected variable in the calendar template stores a date value. This can be confirmed in the variables pane.
     
        
    I tested this as shown below and the correct values were returned. There were no delegation errors.
     
     
     
     
     
    For your gallery, this formula should return the correct values.
    Filter(Bookings, 'Session Date' = _dateSelected)
     
    This formula is delegable against Dataverse. 
     
    If nothing appears in your gallery, check that the Description and Title labels in the gallery are setup to display the description or title fields from your Bookings table.
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
     

    Yes — your issue is mainly coming from non-delegable date conversion + mismatch in how Dataverse stores Date Only values vs how Power Apps compares them.

     
    1. Yes, your current formula is non-delegable

      Using DateValue(Text('Session Date', ...)) forces Power Apps to pull only a limited number of rows (500/2000), then filter locally — which causes wrong or missing matches.
    2. This is a common Dataverse + calendar template issue

      It’s not a bug, but a known problem when comparing Date Only (Dataverse) with DateTime/converted values from _dateSelected.
    3. Correct approach (delegable + reliable)

      Avoid Text() and DateValue() completely. Use a range filter instead:
    With(
        { d: DateValue(_dateSelected) },
        Filter(
            Bookings,
            'Session Date' >= d &&
            'Session Date' < DateAdd(d, 1)
        )
    )
     
     
     
    About _dateSelected
     
    It stores a DateTime value, so even a small time component can break direct comparisons with Dataverse “Date Only”.
     
    Your logic is fine — the problem is conversion. Remove Text() / DateValue() comparisons and use a date range filter for accurate and delegable results.
     
      Vishnu WR
     
    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 
     

     



     


     
  • timl Profile Picture
    37,214 Super User 2026 Season 1 on at
    Note, this is not correct. 

    'Session Date' < DateAdd(d, 1)
     
    As I mentioned in my post, the filter expression looks like this.
     
    On the calendar view, to return whether there are records for a given day, you need to add the 'day' number to the  date of the first day of the month (_firstDayInView). Therefore, the condition looks like this.
     
    'Session Date' = DateAdd(_firstDayInView,ThisItem.Value, TimeUnit.Days)
     
  • WarrenBelz Profile Picture
    155,840 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