Forum Discussion

jenani_user's avatar
jenani_user
Frequent Visitor
3 years ago
Solved

compare two rows

Hi Team,

I need to get the record of name occuring in different years,

As shown , Input table has name and year, the Output should only display name which occured in multiple years

INPUT

OUTPUT

Thanks & Regards,

Jen

 

 

 

 

 

  • Hi jenani_user ,

     

    Please try:

    Apply the measure to the visual level's filter:

     

    Flag = COUNTX(FILTER(ALL('Table'),[Name]=MAX('Table'[Name])),[Name])

     

    Final output:

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • Hi jenani_user ,

     

    Please try:

    Apply the measure to the visual level's filter:

     

    Flag = COUNTX(FILTER(ALL('Table'),[Name]=MAX('Table'[Name])),[Name])

     

    Final output:

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.