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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors