web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Change Font Weight bas...
Power Apps
Answered

Change Font Weight based on when 2 DateCards are equal

(0) ShareShare
ReportReport
Posted on by 181

Afternoon.

 

I have a from with 2x date picker fields (called ShiftsDate1 and ShiftDate2)

 

I need a label in my gallery which needs to display fontweight.bold when ShiftDate1 <= ShiftDate2 and display fontweight.normal when ShiftDate1 = ShiftDate2.

 

This is what I currently have on the FontWeight properties but need some input to finish to make the text normal weight if the two dates are equal value.

 

 

If(ThisItem.'ShiftDate1' <= ThisItem.'ShiftDate2', FontWeight.Bold)

 

 

Many thanks

 

Categories:
I have the same question (0)
  • Angry_Sys_Admin Profile Picture
    181 on at

    @WarrenBelz 99% of the way there, just swapped FontWeight.Bold/Normal around and that was the solution I was after.


    Many thanks

  • Verified answer
    WarrenBelz Profile Picture
    153,507 Most Valuable Professional on at

    Hi @Angry_Sys_Admin ,

    Something like this

    If(
     ThisItem.'ShiftDate1' <= ThisItem.'ShiftDate2', 
     FontWeight.Bold,
     FontWeight.Normal
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard