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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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