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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SushmaReddy
Helper I
Helper I

Remove Duplicates using DAX

Hi Team,

I am developing a report where i need to use table visual and have to display the columns as shown below.

Col1     Col2     Col3

Test1    .abc       .123

            .abc       .234

            .abc       .345

Where i am using a measure to get Col2 and Col3 

IF(
         HASONEVALUE(Table1[Col1]),
         CONCATENATEX(Table2,". "&
         Table2[Col2],
         UNICHAR(10)&UNICHAR(13),
         Table2[Col3])
         
)

but the expected output is shown below.

Col1     Col2     Col3

Test1    .abc       .123

                         .234

                         .345

 

 
3 REPLIES 3
Mahesh0016
Super User
Super User

@SushmaReddy I hope this helps you!THANK YOU!!
BKC =
IF (
ISINSCOPE ( Table1[Col1] ),
CONCATENATEX (
VALUES ( Table2 ),
". " & Table2[Col2],
UNICHAR ( 10 ) & UNICHAR ( 13 ),
Table2[Col3]
)
)


Hi Thank you for the immediate response but i am still getting the same output.

danextian
Super User
Super User

Hi @SushmaReddy ,

 

Assuming that you want to keep only the first Col3 row the min data by Col1 and Col2, create a calc column using the formula below (change the table and column names accordingly):

=
CALCULATE ( MIN ( [Col3] ), ALLEXCEPT ( Table1, Table1[Col1], Table1[Col2] ) ) = Table1[Col3]

This will return 1/0. Use this column in the filter pane. Set the value to 1.

danextian_0-1686552587728.png

Or you can use this in a measure

=
CALCULATE ( [Original Measure], FILTER ( Table1, Table1[MinValue] = 1 ) )




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors