Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I'm trying to create an calculated column that counts how many times the phrase
I have done this with a calculated column call 'Time to Complete Flag' by;
Current:
What i want it to do is it increment the count by 1 if there is more than 1 iteration of "marked this task as resolved". For Task ID AAA & BBB there is only one iteration of the text. However for Task ID CCC has 2 interations and i want it to count these in asending order from the Created On date field so the output looks like the below so i can perform a max query on the next analysis.
I'm sure my CONTAINSTRING needs extending but i'm unsure how in DAX.
Need:
Thank you all!
Solved! Go to Solution.
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 ) )
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 ) )
Perfect! Thank you very much.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |