An electric powertrain for a working machine, the powertrain comprising: - a first electric machine, - a second electric machine, - at least one propulsion axle for propulsion of the working machine, - a transmission assembly comprising: ∘ a first input shaft drivingly connected to the first electric machine, ∘ a second input shaft drivingly connected to the second electric machine, ∘ a first output shaft drivingly connected to the at least one propulsion axle, the first input shaft and the second input shaft being selectively drivingly connectable to the first output shaft, ∘ at least one second output shaft for power take-off from the electric powertrain, the second input shaft being drivingly connected to the at least one second output shaft, ∘ a set of selectively engageable gears comprising at least two selectable gear ratios for transfer of torque, ∘ a set of first clutches (8a, 8b, 8c), wherein each one of the first clutches (8a, 8b, 8c) is configured for selectively engaging one gear of the set of selectively engageable gears, ∘ a second clutch for selectively drivingly connecting the second input shaft to the first output shaft, wherein at least the first input shaft is drivingly connectable to the first output shaft via the set of selectively engageable gears, characterized in that the second input shaft is independently selectively drivingly connectable to the first output shaft, the first clutches (8a, 8b, 8c) are friction clutches, and the second clutch is a dog clutch. - a first electric machine, - a second electric machine, - at least one propulsion axle for propulsion of the working machine, - a transmission assembly comprising: ∘ a first input shaft drivingly connected to the first electric machine, ∘ a second input shaft drivingly connected to the second electric machine, ∘ a first output shaft drivingly connected to the at least one propulsion axle, the first input shaft and the second input shaft being selectively drivingly connectable to the first output shaft, ∘ at least one second output shaft for power take-off from the electric powertrain, the second input shaft being drivingly connected to the at least one second output shaft, ∘ a set of selectively engageable gears comprising at least two selectable gear ratios for transfer of torque, ∘ a set of first clutches (8a, 8b, 8c), wherein each one of the first clutches (8a, 8b, 8c) is configured for selectively engaging one gear of the set of selectively engageable gears, ∘ a second clutch for selectively drivingly connecting the second input shaft to the first output shaft, wherein at least the first input shaft is drivingly connectable to the first output shaft via the set of selectively engageable gears, characterized in that the second input shaft is independently selectively drivingly connectable to the first output shaft, the first clutches (8a, 8b, 8c) are friction clutches, and the second clutch is a dog clutch. ∘ a first input shaft drivingly connected to the first electric machine, ∘ a second input shaft drivingly connected to the second electric machine, ∘ a first output shaft drivingly connected to the at least one propulsion axle, the first input shaft and the second input shaft being selectively drivingly connectable to the first output shaft, ∘ at least one second output shaft for power take-off from the electric powertrain, the second input shaft being drivingly connected to the at least one second output shaft, ∘ a set of selectively engageable gears comprising at least two selectable gear ratios for transfer of torque, ∘ a set of first clutches (8a, 8b, 8c), wherein each one of the first clutches (8a, 8b, 8c) is configured for selectively engaging one gear of the set of selectively engageable gears, ∘ a second clutch for selectively drivingly connecting the second input shaft to the first output shaft, wherein at least the first input shaft is drivingly connectable to the first output shaft via the set of selectively engageable gears, characterized in that the second input shaft is independently selectively drivingly connectable to the first output shaft, the first clutches (8a, 8b, 8c) are friction clutches, and the second clutch is a dog clutch.