Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Currently my code works if it meets one of the 3 choices at least once. If the group (Identifier) has at least "Row1","Row2","Row3" at least once it will be flagged. The adjustment I want to make is if the group has "Row1","Row2", and "Row3" filled.
Flag =
VAR Flag1 =
CALCULATE(
COUNTROWS('Identifier Table'),
FILTER('Identifier Table','Identifier Table'[Identifier]=EARLIER('Identifier Table'[Identifier]) && 'Identifier'[Identifier] IN { "Row1","Row2","Row3"}
)
)
RETURN
IF(Flag1 >0 , "Flag", "No Flag")
Currently
| ID | Col1 | Flag |
| 1 | Row2 | Yes |
| 1 | Row2 | Yes |
| 1 | Row1 | Yes |
| 2 | Row3 | Yes |
| 2 | Row2 | Yes |
| 2 | Row1 | Yes |
| 3 | Row1 | Yes |
| 4 | Row4 | No |
I want the table to look like this
|
Solved! Go to Solution.
HI @user35131,
I'd like to suggest you add values function to remove duplicate values from the table at first, then you can use this list to get the unique item count of specific items to return flag:
NewFlag =
VAR _list =
CALCULATETABLE (
VALUES ( 'Table'[Col1] ),
FILTER (
ALL ( 'Table' ),
[ID] = EARLIER ( 'Table'[ID] )
&& [Col1] IN { "Row1", "Row2", "Row3" }
)
)
RETURN
IF ( COUNTROWS ( _list ) = 3, "Yes", "No" )
Regards,
Xiaoxin Sheng
HI @user35131,
I'd like to suggest you add values function to remove duplicate values from the table at first, then you can use this list to get the unique item count of specific items to return flag:
NewFlag =
VAR _list =
CALCULATETABLE (
VALUES ( 'Table'[Col1] ),
FILTER (
ALL ( 'Table' ),
[ID] = EARLIER ( 'Table'[ID] )
&& [Col1] IN { "Row1", "Row2", "Row3" }
)
)
RETURN
IF ( COUNTROWS ( _list ) = 3, "Yes", "No" )
Regards,
Xiaoxin Sheng
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 122 | |
| 108 | |
| 44 | |
| 32 | |
| 26 |