Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I display metrics in a matrix, some of these are percentages, i.e. % system uptime.
This matrix is a rolling 6 month, using this code (which works fine)
Solved! Go to Solution.
Solved it this way,
Replaced the last 'result' with
Solved it this way,
Replaced the last 'result' with
HI @Yxalitis
If you're looking for an option to format the number of decimal places conditionaly based on measure value directly from the interface, it doesn't exist.
To format the number of decimals in a measure, you can use the Dynamic String Formatting feature.
Here’s a guide with instructions:
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings
It's important to note that from an effective visualization perspective, this approach is not recommended in the same visualization.
Our brain (subconsciously) perceives a wider number (with more decimal places) as larger than a narrower one (with fewer decimals).
As a result, when decimal formatting varies, it creates unnecessary cognitive load, requiring the viewer to stop and recompare,
which increases the likelihood of misinterpretation.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
"It's important to note that from an effective visualization perspective, this approach is not recommended in the same visualization.
Our brain (subconsciously) perceives a wider number (with more decimal places) as larger than a narrower one (with fewer decimals).
As a result, when decimal formatting varies, it creates unnecessary cognitive load, requiring the viewer to stop and recompare,"
Well, I don't think that's true, 100% is clearer than 100.00% IMHO
Thanks, I solved it via an embedded switch statement.
Hi @Yxalitis ,
It's glad to hear that your problem has been resolved. And thanks for sharing the solution here. It would be helpful to others in the community if they face the similar problem as yours. Thank you.
Best Regards
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.