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 / Matching date in Excel...
Power Apps
Unanswered

Matching date in Excel table with dates on Calendar Gallery

(0) ShareShare
ReportReport
Posted on by 55

I'm building an app to track data to and Excel table.

 

Using a calendar gallery, I would like to circle each date that has an entry in the table.  Like this example from David Nissimoff's Building an interactive calendar view with PowerAppscal-image1

 

I added a Collect to the App -> OnStart to create a single column of the dates in the table.

 

Collect(_variable,Table1.Date);

 

On the CalendarScreen, under the MonthDayGallery I have added a circle and set the Visible property to:

 

DateAdd(_firstDayInView,ThisItem.Value,Days) in _variable

 

and the Fill property to

 

ColorFade(RGBA(118,0,0,1),If(Month(DateAdd(_firstDayInView,ThisItem.Value,Days))=Month(_firstDayOfMonth),0,80%))

 

Given the app has shows no errors.  I suspect my problems lies it that frickin' time that get appended to the date.

 

I feeling like I'm I'm really close (following David Nissimoff's Building an interactive calendar view with PowerApps) 

 

An ideas?  thanks

 

Categories:
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @akmiecik1 ,

    Based on your mainly problem, I suggest you thransfer your date time value to date value, then you could avoid this problem.

    The firstly step: I added a Collect to the App -> OnStart to create a single column of the dates in the table.

    You could make a little change. Try this formula:

    Collect(_variable,ForAll(Table1,DateValue(Text(Date,DateTimeFormat.ShortDate))))
    //in this way, the Date field will transfer its data to date value, but field name will change to Value

    So after that change, please note that change field name to Value.

    For example, your step2, you need to change like this:

    IsBlank(Filter(_variable,Value = DateAdd(_firstDayInView,ThisItem.Value,Days)),true,false)

    Here's a doc about text transferring for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text

     

     

     

    Best regards,

     

  • akmiecik1 Profile Picture
    55 on at
    IsBlank(Filter(_variable,Value = DateAdd(_firstDayInView,ThisItem.Value,Days)),true,false)

    Is producing error.  "Invalid number of arguments:  received 3, expected 1"

     

    Changin Collect(_variable,Table1.Date) to

     

    Collect(_variable,ForAll(Table1,DateValue(Text(Date,DateTimeFormat.ShortDate))))

     

    Produces good results.  I created a new gallery and linked to _variable and the dates show mm/dd/yyyy (i.e. no time)

    sss

     

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard