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 Apps
Suggested Answer

Calendar

(0) ShareShare
ReportReport
Posted on by
I am entering this formula:
 
Set( monthStart; Date( Year(Today()); Month(Today()); 1))
 
But for any reason it gives me error
 
Categories:
  • Suggested answer
    timl Profile Picture
    37,424 Super User 2026 Season 2 on at
    Hi CU04112231-0
     
    There should be 2 semi-colons (;;) between the formulas.

    It would look something like this:
     
    Set( monthStart; Date( Year(Today()); Month(Today()); 1));;
    Set( monthEnd; DateAdd(DateAdd(monthStart; 1; Months); -1;Days));;
    Set(firstDateInView.......
    
     
  • Suggested answer
    KBpwr Profile Picture
    55 on at
    Update: Sounds like there is indeed a operators difference pointed out by another user so that should fix this.
     
     
  • Suggested answer
    timl Profile Picture
    37,424 Super User 2026 Season 2 on at
    Yes, as I mentioned in my earlier post, double semi colons are needed between the lines (except for the last line)
     
    // Get the start of the month
    Set(monthStart; Date(Year(Today()); Month(Today()); 1));;
    
    // Get the end of the month
    Set(monthEnd; DateAdd(DateAdd(monthStart; 1; "Months"); -1; "Days"));;
    
    // Get first date in view 
    Set(firstDateInView; DateAdd(monthStart; -Weekday(monthStart); "Days"))
     

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard