Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello Everyone,
I am trying to flag duplicate values with the following measure since I need it do work with my page filters:
Solved! Go to Solution.
Hi @sv98917n ,
Filter blank value before count rows, check the formula below.
Column =
VAR countid =
CALCULATE (
COUNTROWS ( FILTER ( 'Table', 'Table'[value] <> BLANK () ) ),
ALLEXCEPT ( 'Table', 'Table'[id] )
)
RETURN
IF ( countid > 1, "yes", "no" )
Best Regards,
Jay
Hi @sv98917n ,
Filter blank value before count rows, check the formula below.
Column =
VAR countid =
CALCULATE (
COUNTROWS ( FILTER ( 'Table', 'Table'[value] <> BLANK () ) ),
ALLEXCEPT ( 'Table', 'Table'[id] )
)
RETURN
IF ( countid > 1, "yes", "no" )
Best Regards,
Jay
@sv98917n , Try like
Critical Segment ID (Y/N) = IF (COUNTROWS ( FILTER ( allselected(Table1), Table1[SEGMENT_ID] = MAX( Table1[SEGMENT_ID] ) ) ) >=2 && not(isblank(Table1[SEGMENT_ID])), "YES", "NO" )
It won't let me use the column [SEGMENT_ID] after the not(isblank at the end. Says that has to be a measure in order to work.
Hi @sv98917n
Try adding ISBLANK() in your formula
IF(ISBLANK(Table1[SEGMENT_ID]), "No"),IF (COUNTROWS ( FILTER ( allselected(Table1), Table1[SEGMENT_ID] = MAX( Table1[SEGMENT_ID] ) ) ) >=2, "YES", "NO" ))
User | Count |
---|---|
89 | |
82 | |
51 | |
40 | |
35 |