units of spectra

can you please show that the unit of the fluctuation spectrum \(P_\phi\) of a field \(\phi(\vec{x})\) is given by the unit of the variable \(\vec{x}\) on which the field depends to the power of the dimension of the space on which the field is defined times the squared unit of the field amplitude?