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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors