Ubidots Community

[SOLVED] Displaying variables as %

I have a variable that is defined as a percentage (derived battery percentage of fully charged)

When I display it in a dashboard it appears as a simple number - “85” for example

Is there a way to have it displayed as “85%” instead??


Good day @pghilgrainger,

Thank you for sharing your question with the community. Yes, you can add the unit of the variable inside of the variable configuration, and then you can display it in the dashboard using for example the metric widget and it would automatically show the value and the unit. Please refer to the following article to learn how.

All the best,

Brilliant - just what I was looking for!

Thanks Isabel :slight_smile:

1 Like