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 / Calendar showing extra...
Power Apps
Unanswered

Calendar showing extra items

(0) ShareShare
ReportReport
Posted on by 2

@RezaDorrani created a fabulous walkthrough on how to set up a calendar in Powe Apps.  (https://www.youtube.com/watch?v=pA7pcAOvf10&lc=UgwZxNRn0pQmStbIvE94AaABAg.9n_qLZ-VNYe9nriqdWcVr9)

 

I have implemented this with great succes but have hit an issue I can't resolve.  Am posting this here to provide more detail and see if anyone can help.

 

The calendar gallery is a 7x6 grid - making it 42 boxes showing on screen.  The Items property is as per Reza's video, and is unchanged from the out of the box solution that was copied:

 

[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41]

 

The screen is showing as - (Today - 30) March:

 

spcuff_0-1680146896237.png

This screenshot above shows the last 3 rows of 7 blocks.  The blocks at the bottom are actually for 2,3,4,5,6 and 7 April but don't show the day number Text labels. (the colored items are for 3,4, and 5th of April)

 

When I move to April,  the bottom three rows shows like this, with day number labels showing:

spcuff_1-1680148644374.png

 

May, June, Aug, Sept, Oct, Nov last three rows looks like this:

spcuff_2-1680148702259.png

 

July, December:

spcuff_4-1680148779943.png

So, whenever the last row, first column is a day in the current month, all good, the day number labels show.  If it is in the next month, no labels.

 

The formula for the Text property of that Text label is:

If(DateAdd(_firstDayInView,ThisItem.Value,TimeUnit.Days) = Today(), "Today - " & Day(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)), Day(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days)))

 

The fill property for that Text label is: 

If(Weekday(DateAdd(_firstDayInView,ThisItem.Value,TimeUnit.Days))=1||Weekday(DateAdd(_firstDayInView,ThisItem.Value,TimeUnit.Days))=7,Color.LightGray,
If(DateAdd(_firstDayInView,ThisItem.Value,TimeUnit.Days)=Today(),Color.LightBlue,
ColorFade(RGBA(56,96,178,1),80%)
))

 

I am lost as to how to fix this.  Any help greatly appreciated.

 

 

 

 

 

 

 

 

Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @spcuff ,

    Can you share the Visible property of that label ?The problem might came from Visible property.

  • spcuff Profile Picture
    2 on at

    Thanks @gabibalaban 

    Visible property is: 

     

    !(DateAdd(_firstDayInView,ThisItem.Value,TimeUnit.Days) - Weekday(DateAdd(_firstDayInView,ThisItem.Value,TimeUnit.Days)) + 1 > _lastDayOfMonth)

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 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard