While schools fail to teach this, each term in an reaction quotient is divided by a standard activity. That is, all molar concentrations are divided by 1 mol/L and all pressures are divided by 1*105 Pa (which is exactly 1 bar), so units cancel out. This is significant too, as dividing by 1*105 changes the numerical value of your pressure terms significantly.