Forum Discussion
steambucky
7 years agoHelper III
vairable value for a calculated column based specific words found in text data
I have some of the ideas, but not all to create the calculated column I need. I want to write a calculated column where the value varies depending what specific words it finds in the text. Th...
- 7 years ago
You can use the following to create a calculated column
CalcCats = var _black=IF ( ISBLANK ( SEARCH ( "Black", Table1[Data], 1, BLANK () ) ), 0,1) var _big=IF ( ISBLANK ( SEARCH ( "big", Table1[Data], 1, BLANK () ) ), 0,1) var _cats=IF ( ISBLANK ( SEARCH ( "cats", Table1[Data], 1, BLANK () ) ), 0,1) return _black+_big+_cats
If this helped you, please mark this post as an accepted solution and like to give KUDOS .
Regards,
Affan
Zubair_Muhammad
7 years agoCommunity Champion
You can use this calculated column
See attached file as well
Calculated Column =
SUMX (
ADDCOLUMNS (
Words,
"Number of Matches", IF ( SEARCH ( [Words], [Sentence], 1, 0 ) > 0, 1 )
),
[Number of Matches]
)