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! Learn more

Reply
octalllink
Regular Visitor

Custom Column that calculates if a value from another table is present in a specific column

I'm trying to create a custom column in the Account table that will lookup values in the RemoveSpecialChar table and return a value in the row if any of the values is present.

octalllink_1-1720160425524.png

 

 

I got this from another solution: https://www.youtube.com/watch?v=9sKeZbfzBTk and now I'm trying to adopt it for my use but I'm running into issues.

This is my adoption:

 

= Table.AddColumn(Account1, "AccountNameValidate", IF (
    SUMX (RemoveSpecialChar, FIND (RemoveSpecialChar[FromValue__c], Account[Name],, 0 ) ) "insertgreaterthansymbol" 0,
    "Special",
    "")

 

 

octalllink_2-1720160458177.png

 

1 ACCEPTED SOLUTION
octalllink
Regular Visitor

I managed to get this working, the syntax was just wrong.

 

QualityCheck =
IF (
    SUMX ( RemoveSpecialChar, FIND ( RemoveSpecialChar[FromValue__c], Account[Name],, 0 ) ) > 0,
    "Special",
    ""
)
 
This is the result:
octalllink_0-1720391850462.png

 

View solution in original post

3 REPLIES 3
octalllink
Regular Visitor

I managed to get this working, the syntax was just wrong.

 

QualityCheck =
IF (
    SUMX ( RemoveSpecialChar, FIND ( RemoveSpecialChar[FromValue__c], Account[Name],, 0 ) ) > 0,
    "Special",
    ""
)
 
This is the result:
octalllink_0-1720391850462.png

 

bhanu_gautam
Super User
Super User

@octalllink , Try using below given m-code in accounts table and go to create custom column

 

let
RemoveSpecialCharList = RemoveSpecialChar[FromValue__c],
CustomColumn = Table.AddColumn(Account, "AccountNameValidate", each if List.ContainsAny(Text.ToList([Name]), RemoveSpecialCharList) then "Special" else "")
in
CustomColumn




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi bhanu_gautam, thanks for the response but this is the outcome if I do that:

octalllink_0-1720176566711.pngoctalllink_1-1720176583934.png

 

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