We know that Electric Dipole Moment is given by P=q(2a). Here, 2a is a distance and hence is scalar. Also, q is scalar. The product of two scalars is also a scalar. Then how can P be a vector ?
see dipole moment is a vector quantity,it's magnitude is given by P=q*2a.,direction is from -ve to +ve. do not mix magnitude wid direction