Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
RD_PowerBI31
Frequent Visitor

Need display duplicate data

Hello,

I have data like this. The below records are not a duplicate. My requiremnt is if I remove the Code column I should see same number of records, it should not remove the duplicates (after removing the code column records will be duplicate right).

NAMEDEPARTMENTCODE
ADAMSIT100
JAMESIT200
ADAMSIT300
ADAMSIT400
JAMESIT300
CLARKAE400

I am trying to do with Calcuate (expression, allexcept(code) ) which is not working.

After removing ode column the below will be expected results, but my results should be same as above. I hope it is cleared.

NAMEDEPARTMENT
ADAMSIT
JAMESIT
CLARKAE

 

2 REPLIES 2
RD_PowerBI31
Frequent Visitor

Any workaournd please.

ppm1
Solution Sage
Solution Sage

Please see this article that shows one way to do that.

Understanding Group By Columns in Power BI - SQLBI

 

Pat

Microsoft Employee

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.