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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.