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
Anonymous
Not applicable

custom column to fetch values from multiple columns based on Id reference

Hi All,

 

I have a requirement to validate cell value (id), against multiple columns and return a calulated column saying the ID is part of which all applications. Something like below

 

Initial Data:

 

IDNameApp1App2App3
1Steve1  
2paul 2 
3adam33 
4smith444

 

Post Applying Custom Column:

IDNameApp1App2App3App Details
1Steve1  App1
2paul 2 App2
3adam33 App1,App2
4smith444App1,App2,App3

 

Please help on how to build this requirement.

 

Regards,

Sivapratap.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Anonymous,

 

Maybe you can try to use following calculate column formula:

Detail=
CONCATENATEX (
    FILTER (
        {
            IF ( ISBLANK ( Table2[App1] ), "", "app1" ),
            IF ( ISBLANK ( Table2[App2] ), "", "app2" ),
            IF ( ISBLANK ( Table2[App3] ), "", "app3" )
        },
        [Value] <> BLANK ()
    ),
    [Value],
    ","
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @Anonymous,

 

Maybe you can try to use following calculate column formula:

Detail=
CONCATENATEX (
    FILTER (
        {
            IF ( ISBLANK ( Table2[App1] ), "", "app1" ),
            IF ( ISBLANK ( Table2[App2] ), "", "app2" ),
            IF ( ISBLANK ( Table2[App3] ), "", "app3" )
        },
        [Value] <> BLANK ()
    ),
    [Value],
    ","
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.