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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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

Power BI Monthly Update - April 2026

Check out the April 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.