Many thanks, I will give it a try,

Cheers Grant

 

 

From: David Strip <qgis-u...@stripfamily.net> 
Sent: Wednesday, 25 January 2023 12:27 PM
To: qgis-user <qgis-user@lists.osgeo.org>; box...@iinet.net.au
Subject: re: Formatting dynamic text

 

I am trying to use the dynamic text option  [%item_variables('Map
1')['map_scale']%] in my print layout but I get a scale of 100000.000000007
in my title block. How can I apply a format number to get it to display a
whole number like 100000?


I don't know how to do it using dynamic text, but you can get what you want 
using this expression

[% round(map_get( item_variables('Map 1'), 'map_scale'),0)%]

_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to