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] – Comment afficher un dégradé de couleur en fonction d’une mesure ? Couleur des données](https://i1.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/03/Powerbi-couleur-des-données.png?resize=100%2C70&ssl=1)
![[PowerBI] – Comment ajouter une description aux graphiques ? Description des graphiques](https://i2.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/03/PowerBI-Infobulle-description.png?resize=100%2C70&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)