Skip to content

Min Width by Chars

Last edited 190 days ago by Lukas Pavelka.
The Min Width by Chars function is created as Power Apps named Formula for getting minimum width of a text control.

Formula Code

MinWidthByChars(InputText:Text,CharSize:Number):Number=Len(InputText)*CharSize;

Eye on Detail

Power Apps has function to calculate a length of your input text called "Len". This function could be used for calculating number of characters. Then this custom formula gets this length of chars and multiply it by your font size.

Demo

Screenshot 2025-09-21 at 7.36.21.png
You can put static font size or combine it with the previous UDF function

Output


Screenshot 2025-09-21 at 7.35.31.png
Screenshot 2025-09-21 at 7.35.38.png


Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.