Variables, units and dimensions are fundamentally different concepts.
When writing symbols it is conventional to use different fonts to avoid confusion.
Quantity symbols (variables) are written in italic font, e.g. $A$.
Units are written is upright serif roman font, e.g. $\textrm A$.
And Dimensions are written is sans serif roman capital font, e.g. $\textsf A$.
According to the The International System of Units (SI) [Section 1.3; page 11]:
The seven base quantities (dimensions), and their corresponding S.I. units are
- length $\textsf L$, the metre $\textrm m$,
- mass $\textsf M$, the kilogram $\textrm {kg}$,
- time $\textsf T$, the second $\textrm s$,
- electric current $\textsf I$, the ampere $\text A$
- thermodynamic temperature $\textsf{}\Theta$, the kelvin $\textrm K$,
- amount of a substance $\textsf N$, the mole $\textrm{mol}$
- luminous intensity $\textsf J$, the candela $\text {cd}$.
Hence in the example above, the Luminous Intensity of a specific light source $I_v$, has the dimension of luminous intensity $\textsf J$ , and the S.I. unit of measure is the candela $\text {cd}$ (not joule).
A joule is the derived unit of energy $\textrm J = \textrm m^2\, \textrm{kg}\, \textrm s^{−2}$ and has the dimensions of $\textsf L^2\, \textsf M\, \textsf T^{-2}$. Clearly $\text J$ is not the same as (or even comparable to) $\textsf J$, as one is a unit and the other is a basis dimension.
The Radient Intensity $I_e$ has units of $\textrm W\,\textrm {sr}^{-1} = \textrm J\,\textrm{sr}^{-1}\,\textrm s^{-1}$ and thus the dimension is $\textsf L^2\, \textsf M\, \textsf T^{-3}$.
A lumen is a unit equivalent to a candela steradian $\textrm{lm}= \textrm{cd}\,\textrm{sr}$,
such that the luminous coefficient, approximately $683\,\textrm{lm}/\textrm{W}=683\,\textrm{cd}\,\textrm{sr}\,\textrm{W}^{-1}$
Putting the units into the equation for the luminous intensity; $$I_v(\lambda) = 683.002\,[\textrm{cd}\,\textrm{sr}\,\textrm{W}^{-1}]\cdot\bar{y}(\lambda)·I_e(\lambda)\,[\textrm W\,\textrm {sr}^{-1}]$$
(and cancelling units) we see that luminous intensity has units of candela $\textrm{cd}$ (and dimension of $\textsf J$) as expected.