Correct

部门 vs 单位

/ bùmén vs dānwèi /
Strokes

Definition

部门 and 单位 both are Nouns, which means [department; branch; unit].

Example

部门 and 单位 both mean "the organization of some enterprise or business", but 单位 is also a term of a standard measurement.
Generally speaking, 部门 is bigger than 单位, so the two words can be used in one sentence.
1
zài
jiā
企业
de
guǎn
管理
mén
部门
gōngzuò
工作
  

He works in the managing department of an enterprise.

2
men
我们
dōu
zài
xuéyuàn
科学院
  
,
dàn
mén
部门
  
(
dānwèi
单位
  
)
tóng
不同
  

We both work in the Science Academy, but in different departments.

3
liáo
医疗
mén
部门
  
(
dānwèi
单位
  
)
yào
guànchè
贯彻
quánxīnquán
全心全意
wéi
rénmín
人民
服务
de
jīngshén
精神
  

Medical institutions should follow the principle of serving people wholeheartedly.

4
Zhège
这个
mén
部门
  
,
gòng
一共
yǒu
sān
dānwèi
单位
  

The department consists of three sections.

单位
5
zhōng
附中
shì
zhè
suǒ
xué
大学
de
shǔ
附属
dānwèi
单位
  

The affiliated middle school is attached to the university.

6
Zhōngguó
中国
guò
过去
suàn
计算
cháng
长度
de
dānwèi
单位
shì
  
zhàng
  
chě
  
,
děng  
现在
xiàn
zàidōu
改用
gǎiyòng
公制
gōng
zhì

The units of length like Zhang, Chi, etc. were used in China in the past; but now the metric system has been adopted.

7
Gōngzhì
公制
yīngzhì
英制
liàng
计量
dānwèi
单位
bìng
xiāngtóng
相同
  

The metric system is different from the English system of measures.