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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Finding Duplicate Names with Different Status

Hi, 

 

I have a requirement to showcase on a table employees who went from contractor to full time.

How can I achieve this? Is there a DAX to create a count or highlight those names which converted?

 

NameHire DateStatus
Mary Jane1/1/2019Contractor
Mary Jane1/1/2020FTE
Gary Smith11/1/2018Contractor
Bob Ferguson12/1/2016Contractor
Bob Ferguson06/01/2018FTE
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a measure like below and add it to visual filter then configure the condition formatting like below.

Measure = CALCULATE(DISTINCTCOUNT('Table'[Status]),ALLEXCEPT('Table','Table'[Name]))

7.PNG

Result would be shown as below.

8.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a measure like below and add it to visual filter then configure the condition formatting like below.

Measure = CALCULATE(DISTINCTCOUNT('Table'[Status]),ALLEXCEPT('Table','Table'[Name]))

7.PNG

Result would be shown as below.

8.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

AlB
Community Champion
Community Champion

Hi @Anonymous 

You can create a new table:

Converted =
FILTER (
    DISTINCT ( Table1[Name] );
    VAR LastDate_ =
        CALCULATE ( MAX ( Table1[Hire Date] ) )
    VAR IsFTEOnLastDate_ =
        CALCULATE (
            COUNT ( Table1[Hire Date] );
            Table1[Hire Date] = LastDate_;
            Table1[Status] = "FTE"
        ) > 0
    VAR WasPreviouslyContractor_ =
        CALCULATE (
            COUNT ( Table1[Hire Date] );
            Table1[Hire Date] <= LastDate_;
            Table1[Status] = "Contractor"
        ) > 0
    RETURN
        AND ( IsFTEOnLastDate_; WasPreviouslyContractor_ )
)

where Table1 is the table you show

Please mark the question solved when done and consider giving kudos if posts are helpful.

 Cheers 

SU18_powerbi_badge

 

 

Anonymous
Not applicable

 
AlB
Community Champion
Community Champion

You need to use the name of your table in lieu of Table1 and perhaps commas instead of ";" depending on your locale

Please mark the question solved when done and consider giving kudos if posts are helpful.

 Cheers 

SU18_powerbi_badge

AlB
Community Champion
Community Champion

See it at work in the attached file

Please mark the question solved when done and consider giving kudos if posts are helpful.

 Cheers 

SU18_powerbi_badge

 

 

nandukrishnavs
Community Champion
Community Champion

@Anonymous 

 

Try this measure

 

contractortofulltime = 
var _isContractor= CALCULATE(COUNT('Table'[Status]),'Table'[Status]="Contractor")
var _isFulltime= CALCULATE(COUNT('Table'[Status]),'Table'[Status]="Full Time")
var _contractortofulltime = IF(_isContractor>0&&_isFulltime>0,"Yes","No")
return _contractortofulltime

 

 

Capture.JPG

Now you can apply this measure in visual level filter ( is Yes ). 

Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂

 


Regards,
Nandu Krishna

@Anonymous  is it not working?


Regards,
Nandu Krishna

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.