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 _firstDayInVi...
Power Apps
Unanswered

Calendar _firstDayInView Problem

(0) ShareShare
ReportReport
Posted on by 30

Hello. I am using this calendar component for date picking: https://github.com/aprildunnam/PowerApps/blob/master/Components/Calendar%20Component%20(4).msapp

 

But I get "wrong variable" error for _firstDayInView variable. I couldn't find the solution. Because of this error, calendar calculates date differences wrong. Here you can see the codes which gives error:

 

DateAdd(
_firstDayInView;
ThisItem.Value;
Days
) = _today

****************

If(
CalendarComponent.ShowCalendarEvents = false;
DateAdd(
_firstDayInView;
ThisItem.Value;
Days
) = _today;
If(
CountRows(
Filter(
CalendarComponent.CalendarItems;
DateValue(Text(Date)) = DateAdd(
_firstDayInView;
ThisItem.Value;
Days
)
)
) > 0; true;false)
)

********

If(DateAdd(_firstDayInView;ThisItem.Value;Days) = _selectedStart || DateAdd(_firstDayInView;ThisItem.Value;Days) = _selectedEnd; CalendarComponent.BorderRadius;0)

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard