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 / Any ideas how to simpl...
Power Apps
Answered

Any ideas how to simplify this formula? trying to implement a clamp formula.

(0) ShareShare
ReportReport
Posted on by 160

Hi All,

I was trying to scale the fonts on my app and I came with the following formula.

If(App.Width >= Last(FirstN(App.SizeBreakpoints, 4)).Value, 50, App.Width > Last(FirstN(App.SizeBreakpoints, 1)).Value, App.Width*0.17*0.25, 20)

So basically  what it does it that we start with 20 anything above it will then use the formula: App.Width*0.17*0.25 but will not go bigger than 50. I wonder if there is a way for me to this like with the clamp function we have in css.


Thanks.

Categories:
  • Verified answer
    rssilvaba Profile Picture
    160 on at

    For anyone wondering I simplified with:

    Min(Max(20,App.Width*0.17*0.25),50)

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard