Méthode 1 :
with cte as(selectrow_number()over (partition by ParentProductCategoryID,Name order by ParentProductCategoryID ) as classement, ParentProductCategoryID,Name from [SalesLT].[ProductCategory] where ParentProductCategoryID is not null)delete from cte where classement >1Méthode 2 :
deletefrom SalesLT.ProductCategory where ParentProductCategoryID in (select ParentProductCategoryID from SalesLT.ProductCategory group by ParentProductCategoryID having count(*) >1

![[PowerBI][DAX] – Comment gérer les espaces et les champs vides ?](https://i1.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/01/powerbi-dax-isblank.png?resize=100%2C70&ssl=1)
![[PowerBI][DAX] – DISTINCTCOUNT() dax powerbi fonction distinctcount](https://i0.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/03/powerbi-dax-distinctcount.png?resize=218%2C150&ssl=1)
![[PowerBI] – Créer une carte visuelle dynamique Création d'une carte dynamique](https://i1.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/03/powerbi-carte-dynamique-1.gif?resize=218%2C150&ssl=1)


![[PowerBI][DAX] – Comment compter le nombre de ligne d’une table ?](https://i2.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/01/powerbi-dax-countrows-logo-1.png?resize=100%2C70&ssl=1)