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 / Small dot indicator no...
Power Apps
Answered

Small dot indicator not showing under calendar dates with Bookings data from Dataverse

(2) ShareShare
ReportReport
Posted on by 38

Hi All,

Im new to Power Apps and I am building a calendar app connected to a Bookings table in Dataverse, and I need a small orange dot to appear under dates that have sessions booked.

What I have:

  • A calendar using MonthDayGallery with _firstDayInView variable
  • Circle2_1 inside the gallery as the dot indicator
  • Bookings table with a Session Date column (Date only format, dd/mm/yyyy)
  • Gallery1 filtered by _dateSelected to show session details
  •  
What works:
  • When I set Circle2_1 Visible to true — dots appear under every date
  • Gallery1 is connected to the Bookings table
  • Calendar navigation works
What doesn't work:

  • The dot filter formula is not working

  • Gallery1 doesn't show sessions when the date is clicked.

What I have tried:

  • Removing DateValue(Text()) conversion
  • Using Year(), Month(), Day() comparison
  • Using Text('Session Date', "dd/mm/yyyy") format matching
  • Simple = comparison
  •  
None of these shows dots only on dates that have bookings in the bookings table. How do I correctly compare a Date-only Dataverse field with DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days) to show dots only on dates that have bookings? And how do I correctly filter Gallery1 by the selected calendar date?
 

Any help is greatly appreciated!

Thank you 

gallery .png
circle2_1.png

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)
  • Verified answer
    Haque Profile Picture
    3,653 on at
    Hi @CU10030108-0,
     
    Given that you have tried multiple date comparison methods without success, the issue likely lies in how the dates are stored or compared in Power Apps. There are couple of issues to address - let's dig down on by one:
     
    1. Normalize the Date Comparison for Dot Visibility: Set the Visible property of your dot (Circle2_1) inside the MonthDayGallery to:
    CountRows(
        Filter(
            Bookings,
            'Session Date' >= DateAdd(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days), -TimeZoneOffset(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)), TimeUnit.Minutes) &&
            'Session Date' < DateAdd(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days), 1 - TimeZoneOffset(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)), TimeUnit.Minutes)
        )
    ) > 0
    
     
    What the above  code does:
    • DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days) calculates the local date for the calendar cell.
    • TimeZoneOffset() adjusts for the user's local time zone to align with UTC stored in Dataverse.
    • The filter checks if 'Session Date' is between the start of that day (adjusted to UTC) and before the next day (also adjusted).
    • This range comparison avoids issues with time components and ensures accurate matching.
     
    2.  Set the Selected Date on Click.  In your MonthDayGallery, set the OnSelect property of the date item (or container) to:
    Set(_dateSelected, DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days))

    3. Filter Gallery1 by the Selected Date. Set the Items property of Gallery1 to:

    Filter(
        Bookings,
        'Session Date' >= DateAdd(_dateSelected, -TimeZoneOffset(_dateSelected), TimeUnit.Minutes) &&
        'Session Date' < DateAdd(_dateSelected, 1 - TimeZoneOffset(_dateSelected), TimeUnit.Minutes)
    )
    
    This filters sessions to those booked on the selected date, accounting for time zone differences.
     

    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!
  • Verified answer
    11manish Profile Picture
    3,333 on at
    The issue occurs because even “Date Only” fields in Dataverse are handled as DateTime values internally, causing mismatches during comparison.
     
    The correct approach is to normalize both sides using DateValue() to strip time and ensure accurate comparison. For showing dots, use a CountRows/Filter with DateValue on both the Session Date and the calculated calendar date.
     
    For filtering Gallery1, store the selected date using DateAdd and compare it using DateValue as well. This ensures consistent and reliable behavior.
  • Verified answer
    Valantis Profile Picture
    6,735 on at
     
    Both replies are pointing in the right direction but there's a simpler path for your specific setup.
     
    Since your Session Date column is Date Only (not DateTime), you don't actually need the TimeZoneOffset adjustment. Date Only fields in Dataverse don't store time or timezone info, so the UTC conversion adds unnecessary complexity and can actually introduce bugs when the offset pushes the date over midnight.
    The cleanest fix is DateValue() on both sides to make sure you're comparing just the date part with no time component noise.
     
    For Circle2_1 Visible property:
    CountRows(
        Filter(
            Bookings,
            DateValue(Text('Session Date', "mm/dd/yyyy")) = 
            DateValue(Text(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days), "mm/dd/yyyy"))
        )
    ) > 0
    Note: use mm/dd/yyyy not dd/mm/yyyy in the Text() format string inside DateValue(). Power Apps DateValue() expects month-first format regardless of your display preference.
    For Gallery1 Items property:
    Filter(
        Bookings,
        DateValue(Text('Session Date', "mm/dd/yyyy")) = 
        DateValue(Text(_dateSelected, "mm/dd/yyyy"))
    )
    And make sure your MonthDayGallery OnSelect sets the variable:
    Set(_dateSelected, DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days))
     
    The most common reason none of your previous attempts worked is almost certainly the dd/mm/yyyy format string in DateValue(). That's a silent failure — no error, just no matches.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Haque Profile Picture
    3,653 on at
     
    Was following up on if your expected answers found or not. If you think you got clues - please mark the answer verfied. 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

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