In my attribute table of a vector layer I have the following field with the decimal data.

enter image description here

I would like that QGIS shows me only the first 2 decimal positions in the Attribute table, but I do NOT want QGIS to actually change the data. Just to show me the data a bit nicer.

Is that possible? Is there a function I'm not seeing?

I'm using QGIS 3.4


If you are in an attribute table in print layout then you can use the Expression editor (Epsilon button by the new row) and use the round function

round("no2", 2) 

Where "no2" is the name of the attribute you would like to use.

  • how do I get access to the attribute table in the print layout? In the "project view" something like that is not possible?
    – DGIS
    Jan 27 '20 at 12:59
  • There is a button down the LHS of the screen (by default) that adds an attribute table to your print out.
    – Ian Turton
    Jan 27 '20 at 14:11
  • you mean the two Buttons where you can switch between the 'table view' and the 'form view'?
    – DGIS
    Jan 27 '20 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.