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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tangutoori
Helper III
Helper III

Filter the repeated ID which match both columns

 Hello,

CURRENT OUTPUT Is a table view,

Var is a measure. 

ID is a column.

If is ID is repeated then compare the Old column New column, if both are matching then hide that record. 

 

CURRENT EXPECTED
IDOldNewvar ID Newvar
APPLE|INDIA|AA15064AA15064AA15064200 APPLE|INDIA|AA15064AA15064AA15065200
APPLE|INDIA|AA15064AA15064AA15065200 APPLE|INDIA|A15066A15066A15066300
APPLE|INDIA|A15066A15066A15066300 APPLE|INDIA|A15067A15067A15067400
APPLE|INDIA|A15067A15067A15067400 APPLE|INDIA|A15068A15068A15068500
APPLE|INDIA|A15068A15068A15068500 APPLE|INDIA|A15069A15069A15069600
APPLE|INDIA|A15069A15069A15069600 APPLE|INDIA|A1510A1510A1510300
APPLE|INDIA|A1510A1510A1510300     

 

please do needful.

 

Regards,

Reddy.

2 REPLIES 2
v-xuxinyi-msft
Community Support
Community Support

Hi  @tangutoori 

 

You can create a measure as follows.

 

HideRows =
VAR _countID =
    CALCULATE ( COUNT ( 'Table'[ID] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
RETURN
    IF (
        _countID > 1
            && SELECTEDVALUE ( 'Table'[Old] ) = SELECTEDVALUE ( 'Table'[New] ),
        0,
        1
    )

 

 

Then put the measure into the filter so that the visual only shows data where the measure is equal to 1.

1.png

 

2.png

Is this the result you expect?

 
Best Regards,
Community Support Team_Yuliax
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ryan_mayu
Super User
Super User

@tangutoori 

could you pls provide the sample data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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