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 / how to remove last mon...
Power Apps
Answered

how to remove last month days in calender screen

(0) ShareShare
ReportReport
Posted on by

i have inserted calender control from calender template screen.

now i want to remove last month disabled dates and future days from calender. so in each month it should display only that month days . how to do it.

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @venky232 ,

     

    Please go to Visible of the Label inside the MonthDayGallery, add the formula below as in my screenshot:

    vjefferni_2-1690872880041.png

     

    &&!(Abs(Self.Text - ThisItem.Value) > 10)

     

     

    Best regards,

  • venky232 Profile Picture
    on at

    its working but i have added a label in gallery to show holidays .but for blank date also it is showing label value in below code

    LookUp(
    Filter(
    Holidays2023,
    'Holiday Type' = "Public Holiday"
    ),
    'Holiday Date' = Text(DateAdd(_firstDayInView, ThisItem.Value, TimeUnit.Days), "dd-mmm-yyyy"),
    'Holiday Type'
    )

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @venky232 ,

     

    You can simply copy all the codes in Visible of Title Label to Visible of the holiday Label you just added then hide them from current month.

     

    Best regards.

  • venky232 Profile Picture
    on at

    error 

    Issue 
    Name isn't valid. 'Value' isn't recognized.
    This error appears most commonly when a
    formula refers to something that no longer exists
    (for example, a control that you've deleted).
    Location
    CB Button 3
    Msible
    How to fix
    Remove or correct the reference to the name that
    isn't valid.

     and also the value cant convert to number 

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @venky232 ,

     

    Could you please share a screenshot of the new Label and current formula in Visible? I cannot understand why the convert to number error appears.

     

    Best regards,

  • venky232 Profile Picture
    on at

    i added button in gallery of calender to display choice value of sharepoint coloumn.

    in button text properties i added as thisitem.SPchoice.value.

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @venky232 ,

     

    vjefferni_0-1690876889569.png

     

    Best regards,

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 600

#2
WarrenBelz Profile Picture

WarrenBelz 478 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard