Forum Discussion
Rana80
2 years agoFrequent Visitor
CONTAINSSTRING with counting rows
Hi I'm trying to create an calculated column that counts how many times the phrase "marked this task as resolved" occurs for each Task ID I have done this with a calculated column call ...
- 2 years ago
pls try this
Column = VAR t1 = 'Table'[Task JD] VAR t2 = CONTAINSSTRING('Table'[Message],"marked this task as resolved") VAR tbl = FILTER(ALL( 'Table' ), 'Table'[Task JD] = t1&& CONTAINSSTRING('Table'[Message],"marked this task as resolved" )= TRUE) RETURN IF( t2, RANKX( tbl, 'Table'[Created On], , ASC, DENSE ) )
Ahmedx
2 years agoSuper User
pls try this
Column = VAR t1 = 'Table'[Task JD]
VAR t2 =
CONTAINSSTRING('Table'[Message],"marked this task as resolved")
VAR tbl =
FILTER(ALL( 'Table' ),
'Table'[Task JD] = t1&&
CONTAINSSTRING('Table'[Message],"marked this task as resolved" )= TRUE)
RETURN
IF( t2, RANKX( tbl, 'Table'[Created On], , ASC, DENSE ) )Rana80
2 years agoFrequent Visitor
Perfect! Thank you very much.