[Solved] Use siunitx to display a column in desired unit

mritz_p Asks: Use siunitx to display a column in desired unit
I have this basic table:

Code:
begin{table}[]
centering
begin{tabular}{lll}
 & a/W & b/W \
v & 0.00001 & 1000 \
w & 0.002 & 200 \
x & 0.000003 & 30000 \
y & 0.00004 & 40
end{tabular}
caption{Actual Data}
label{tab:actual}
end{table}

The numbers in that table body are generated programmatically. I would like to elect a unit per column that the values are automatically converted to. Can I achieve this using siunitx? The output should look something like that:

Code:
begin{table}[]
centering
begin{tabular}{lll}
 & a/mW & b/kW \
v & 0.01 & 1 \
w & 2 & 0.2 \
x & 0.003 & 30 \
y & 0.04 & 0.04
end{tabular}
caption{Can I achieve this using siunitx?}
label{tab:actual}
end{table}

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.