Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: how to remove last month days in calender screen

    Hi @venky232 ,

     

    vjefferni_0-1690876889569.png

     

    Best regards,

  • venky232 Profile Picture
    on at
    Re: how to remove last month days in calender screen

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

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

     

  • v-jefferni Profile Picture
    on at
    Re: how to remove last month days in calender screen

    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
    Re: how to remove last month days in calender screen

    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
    on at
    Re: how to remove last month days in calender screen

    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
    Re: how to remove last month days in calender screen

    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
    on at
    Re: how to remove last month days in calender screen

    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,

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard