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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
lavina03
Helper I
Helper I

Need help to filter few tags

Hi,

 

I have the following data wherein I need to group the user only by Manager1, Manager 2, Manager 3 from the tag column. 

 

 

https://docs.google.com/spreadsheets/d/1ePsU0mnzKeiaFSz_cG9vCHV91qyMVX4X8ciUHJEVRJE/edit#gid=9726761...

1 ACCEPTED SOLUTION
v-haibl-msft
Employee
Employee

@lavina03

 

Not sure if following result is what you want. Create a new column with following DAX formula.

NewTag = 
IF (
    SEARCH ( "Manager 1", Table1[tags],, 0 ) > 0,
    "Manager 1",
    IF (
        SEARCH ( "Manager 2", Table1[tags],, 0 ) > 0,
        "Manager 2",
        IF ( SEARCH ( "Manager 3", Table1[tags],, 0 ) > 0, "Manager 3", Table1[tags] )
    )
)

Need help to filter few tags_1.jpgNeed help to filter few tags_2.jpg

 

Best Regards,

Herbert

View solution in original post

4 REPLIES 4
v-haibl-msft
Employee
Employee

@lavina03

 

Not sure if following result is what you want. Create a new column with following DAX formula.

NewTag = 
IF (
    SEARCH ( "Manager 1", Table1[tags],, 0 ) > 0,
    "Manager 1",
    IF (
        SEARCH ( "Manager 2", Table1[tags],, 0 ) > 0,
        "Manager 2",
        IF ( SEARCH ( "Manager 3", Table1[tags],, 0 ) > 0, "Manager 3", Table1[tags] )
    )
)

Need help to filter few tags_1.jpgNeed help to filter few tags_2.jpg

 

Best Regards,

Herbert

@v-haibl-msft,

 

Thank you for your help. It worked for me

KGrice
Memorable Member
Memorable Member

Hi @lavina03. Could you update your post to include the screenshot in the post directly, rather than with a link? I'm unable to use the link and suspect others might have the same issue. Thanks.

@KGrice,

 

Updated the post with data

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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