This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA 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.
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 have duplicate and empty Serial Number
The result would be 4 here. I would like to display the result in a card and can export these names.
Thank you in advance.
Solved! Go to Solution.
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]
)
Hi @Anonymous
You can use this measure to count
Count Measure = SUMX(FILTER(SUMMARIZE('Table','Table'[Serial numer],"Count",COUNT('Table'[Name])),[Count]>1),[Count])
If you want to display the names in the report, you can use another measure as a filter. Add Name column to a table visual in the report, then add below measure to filter pane as a visual-level filter on this table visual. Set it to show items when value is 1.
Filter Flag =
var vSNs = SELECTCOLUMNS(FILTER(SUMMARIZE(ALL('Table'),'Table'[Serial numer],"Count",COUNT('Table'[Name])),[Count]>1),"SN",[Serial numer])
return
IF(SELECTEDVALUE('Table'[Serial numer]) IN vSNs, 1, 0)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
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]
)
Thank you for your advice.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 25 | |
| 25 | |
| 21 | |
| 14 |
| User | Count |
|---|---|
| 61 | |
| 50 | |
| 25 | |
| 20 | |
| 20 |