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
Anonymous
Not applicable

Detect double duplicate value by entity

Hello,

how to calculate in dax the number of identical rows in the name and date columns.

The idea is to be able to display by entity the number of rows having the same value for name and date.

Here for the entity 1 and 2 I must display 2 and for the entity 3 I must find 1.

I thought of concatenating name and date and doing a "distinccount" but it always displays 1 for any entity with a segment.


Thanks a lot.

 

CharlyExperteam_2-1630400657355.png

 

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi   

Try to add a column as a "DATENAME" by concatenating name and date, then try this measure:

Measure=
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER ( ALL ( 'Table' ), 'Table'[DATENAME] = MAX ( 'Table'[DATENAME] ) )
)

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Appreciate your Kudos VahidDM_0-1630402331595.png

 

 

 

 

@Anonymous

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi   

Try to add a column as a "DATENAME" by concatenating name and date, then try this measure:

Measure=
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER ( ALL ( 'Table' ), 'Table'[DATENAME] = MAX ( 'Table'[DATENAME] ) )
)

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Appreciate your Kudos VahidDM_0-1630402331595.png

 

 

 

 

@Anonymous

ziyabikram96
Helper V
Helper V

Helpful resources

Announcements
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.