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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.