I followed every step of this tutorial but when I join the distToRoads and distance in m I get a table distToRoads which contains just the null vaues, why is that?

Tutorial: https://www.qgistutorials.com/en/docs/performing_table_joins.html enter image description here


1 Answer 1


This will only work if the two columns are exactly the same. They are likely to be floating point (or real) numbers and so won't be an exact match.

More usually you would join on a common id or name.

  • Ok, but what should I do then to get this field "Distance in m" from my csv file to be in my layer in the attribute table?
    – John Doe
    Apr 19, 2019 at 18:46
  • you need to join using a common id field - do you have one?
    – Ian Turton
    Apr 20, 2019 at 7:44
  • Hi, I don't have it. Can I perform some other operation besides join to do what I desire?
    – John Doe
    Apr 20, 2019 at 11:37
  • You could create a new field in each layer with rounded values, and use the rounded values for the join.
    – csk
    Apr 21, 2019 at 1:32

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.