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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
wneiton
Resolver I
Resolver I

Identify duplicate and create new table

Hi dear, 

 

I just want to identify duplicate values in my rows and create another table with this duplicate values, I will give an example. 

 

I have this table. 

table1.JPG 

 

As you can see there are duplicate values. As a result I would like that table below. 

 

table2.JPG

 

Thanks!

 

1 ACCEPTED SOLUTION

Hi @wneiton

 

I've tested with calculated column as below. It seems nothing wrong with the formula. If it is not your case, please share your data sample file. You can upload it to OneDrive or Dropbox and post the link here.

1.png

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-cherch-msft
Employee
Employee

Hi @wneiton

 

You may try to add a calculated column as below:

Dup =
COUNTX (
    FILTER ( 'sample', 'sample'[valores] = EARLIER ( 'sample'[valores] ) ),
    'sample'[final_notas]
)

1.png

Then you may get a table use DAX or get a table visual as below:

Table:

Table 2 =
SELECTCOLUMNS (
    FILTER ( 'sample', 'sample'[Dup] = 2 ),
    "final_notas", 'sample'[final_notas]
)

Table visual:

1.png 

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-cherch-msft

 

valores is a calculated column, then it does not appears here 

EARLIER ( 'sample'[valores] ) ),

is there a way to turn it around?

 

thanks!

Hi @wneiton

 

I've tested with calculated column as below. It seems nothing wrong with the formula. If it is not your case, please share your data sample file. You can upload it to OneDrive or Dropbox and post the link here.

1.png

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vvelarde
Community Champion
Community Champion

@wneiton

 

Hi, do you want a table or a table visual.?

 

Regards

 

Victor




Lima - Peru

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.