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.
Hello everyone,
I need a filter to see the names which their number is greater than 1.
If the sum of the number is empty or equal to 1, then " empty or equal to 1" otherwise "greater than 1"
Raw data
| ID | Name | Status | Group |
| 1 | William | Yes | A |
| 2 | William | No | B |
| 3 | William | Yes | C |
| 4 | Max | No | A |
| 5 | Max | Yes | C |
| 6 | Luca | Yes | D |
| 7 | Marvin | Yes | A |
| 8 | Marvin | No | B |
| 9 | Max | No | B |
| 10 | Max | Yes | D |
Result:
| Name | # Yes | # No | Sum |
| William | 2 | 1 | 3 |
| Max | 2 | 2 | 4 |
| Luca | 1 | 1 | |
| Marvin | 1 | 1 | 2 |
Thank you
Tito
Solved! Go to Solution.
Hi @Tito
Assuming your definition of number is the count of records per name, create this calculated column.
Slicer Column =
VAR _CountPerName =
CALCULATE ( COUNTROWS ( 'table' ), ALLEXCEPT ( 'table', 'table'[name] ) )
RETURN
IF ( _CountPerName > 1, "greater than 1", "Empty or equal to 1" )
Hi @Tito
Assuming your definition of number is the count of records per name, create this calculated column.
Slicer Column =
VAR _CountPerName =
CALCULATE ( COUNTROWS ( 'table' ), ALLEXCEPT ( 'table', 'table'[name] ) )
RETURN
IF ( _CountPerName > 1, "greater than 1", "Empty or equal to 1" )
Hi @danextian ,
Thank you very much. I have adjusted your measure:
Slicer Column =
VAR _CountPerName =
CALCULATE ( DISTINCTCOUNT( 'table' ), ALLEXCEPT ( 'table', 'table'[name] ) )
RETURN
IF ( _CountPerName > 1, "greater than 1", "Empty or equal to 1" )
help
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 |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 28 | |
| 24 | |
| 21 |