Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
mmarchioni
Helper I
Helper I

Detect mismatch in Results associated with a Unique ID

I would like to be able to show only the Unique ID rows with mismatched Results. Example:

 

Unique IDTest TypeResultTest Date
123Abby1A1/1/2020
123Abby2A1/10/2020
123Abby1B2/1/2020
123Abby1A2/5/2020
456Abby2B1/8/2020
456Abby1B2/10/2020
456Abby1B2/28/2020
789Abby1A1/1/2020
789Abby1O3/5/2020

 

Rows for 123 and rows for 789 would show because all of the results associated with their unique ID are not matching.

Rows for 456 would not show because all the results for 456 match.

 

Any suggestions?

 

6 REPLIES 6
AlB
Community Champion
Community Champion

@mmarchioni 

You're probably doing something differently. See it at work in the attached file.

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

AlB
Community Champion
Community Champion

Hi @mmarchioni 

With what you show as visual, create a measure:

Show measure =
VAR check_ =
    CALCULATE (
        DISTINCTCOUNT ( Table1[Result] ),
        ALLEXCEPT ( Table1, Table1[Unique ID] )
    ) > 1
RETURN
    IF ( check_, 1, 0 )

Then use the measure as a filter for the visual, choosing to show when the value is 1

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

I tried this as well. Everything shows a value as 1. 

@mmarchioni ...go with this.  Far more elegant than my solution!  🙂

littlemojopuppy
Community Champion
Community Champion

Hi @mmarchioni 

 

You can create a calculated column like this

All Tests Match = 
    VAR TestSummary =
        GROUPBY(
            FILTER(
                ALL(Tests),
                Tests[Unique ID] = SELECTEDVALUE(Tests[Unique ID])
            ),
            Tests[Unique ID],
            Tests[Result],
            "RowCount",
            COUNTX(
                CURRENTGROUP(),
                Tests[Unique ID]
            )
        )
    VAR RecordCount = COUNTROWS(TestSummary)
    RETURN

    IF(
        RecordCount > 1,
        FALSE(),
        TRUE()
    )

 

Then when you create a visualization on the canvas, you can filter it for where the calculated column = FALSE()

littlemojopuppy_0-1610133641090.png

 

Hope this helps!  🙂

I tried this and the only answer I get is True (even when it is false). It isn't that the Result field has to have a result, the Result field results must all match for each Unique ID for it to be "true".

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.