Forum Discussion
andrius_pfa
4 years agoNew Member
Count ID's from text
Hello, Im new to Power Bi , and I need help. I want to create column and count how many ID's begins with _A. Example: ing-WoX8/1/1_A1385556-Xdu Trou6_A1407390-Maon - 2 S5/1/1_A1385448-VALENANI ...
- Anonymous4 years ago
Hi andrius_pfa ,
you can use this formula for creating this column._A count = VAR Search_string = "_A" RETURN DIVIDE( LEN('Table'[Value]) - LEN(SUBSTITUTE('Table'[Value],Search_string,BLANK())), LEN(Search_string), 0 )
Regards
Anonymous
4 years agoNot applicable
Hi andrius_pfa ,
you can use this formula for creating this column.
_A count =
VAR Search_string = "_A"
RETURN
DIVIDE(
LEN('Table'[Value]) - LEN(SUBSTITUTE('Table'[Value],Search_string,BLANK())),
LEN(Search_string),
0
)
Regards