Forum Discussion
Anonymous
3 years agoNot applicable
Count/export empty and duplicate value
Hi, I have the following table: Name Serial numer A 2DC25F B F3DGG C D E 5GERG F 6XDBD G 89DBBE H 6XDBD Could you please help to count Names which ha...
- 3 years ago
You can create a measure like
Duplicates and blanks = VAR SummaryTable = ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[Serial numer] ), "@num rows", CALCULATE( COUNTROWS( 'Table' ) ) ) RETURN SUMX( FILTER( SummaryTable, [@num rows] > 1 || ISBLANK( 'Table'[Serial numer] ) ), [@num rows] )
johnt75
3 years agoSuper User
You can create a measure like
Duplicates and blanks =
VAR SummaryTable =
ADDCOLUMNS(
SUMMARIZE( 'Table', 'Table'[Serial numer] ),
"@num rows", CALCULATE( COUNTROWS( 'Table' ) )
)
RETURN
SUMX(
FILTER(
SummaryTable,
[@num rows] > 1 || ISBLANK( 'Table'[Serial numer] )
),
[@num rows]
)Anonymous
3 years agoNot applicable
Thank you for your advice.