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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rush
Helper V
Helper V

Tag all employee records with Active if their Staff Stage is equal to Staff

Hi

 

I have an employment table with mutiple records whereby for each individual they are tagged with either Staff , Ex-staff  or Starting.

I would like to create a measure or column that will identify if an individual is tagged with Staff then the rest of his records should be tagged with Active.

Please see image below for the data that I have where I would like to replicate the last column.

Thanks.Active Tag.PNG

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@rush 

 

Try this as a column

 

=
IF (
    CONTAINS (
        FILTER ( TABLENAME, TableName[PersonID] = EARLIER ( TableName[PersonID] ) ),
        [Staff Stage], "Staff"
    ),
    "Active",
    "Inactive"
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@rush 

 

Try this as a column

 

=
IF (
    CONTAINS (
        FILTER ( TABLENAME, TableName[PersonID] = EARLIER ( TableName[PersonID] ) ),
        [Staff Stage], "Staff"
    ),
    "Active",
    "Inactive"
)

@Zubair_Muhammad  Thanks a lot.

It is working well.

 

Much appreciated.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors