Add dimension table id column to variable table