This should work.
WITH cte AS (
SELECT
fcontainer.id
,FlaggId
,Sum(FContainerRow.Units) AS units
,fcontainerplats.x
,FContainerPlats.y
,FContainerHylla.Name
,tempo.temponr
,produkter.Artikelnummer
,produkter.Produktnamn
,ROW_NUMBER() OVER (PARTITION BY fcontainer.id) rn
FROM fcontainerrow
JOIN fcontainer ON FContainerRow.FContainerId = fcontainer.id
JOIN fcontainerplats ON fcontainer.PlatsId = FContainerPlats.id
JOIN FContainerHylla ON fcontainerplats.HyllId = FContainerHylla.Id
JOIN Tempo ON fcontainerrow.ExtKeyId = tempo.lagernr
JOIN produkter ON produkter.Produktnr = tempo.produktnr
WHERE ExtKeyName = 'Lager'
AND fcontainer.PlatsId > 0
GROUP BY fcontainer.id
,flaggid
,fcontainerplats.x
,FContainerPlats.y
,FContainerHylla.Name
,tempo.temponr
,produkter.Artikelnummer
,produkter.Produktnamn
)
SELECT
fcontainer.id
,FlaggId
,units
,x
,y
,Name
,temponr
,Artikelnummer
,Produktnamn
FROM cte
WHERE rn = 1