Forum Discussion
aflintdepm
Helper III
3 years agoDAX Formula to "Collect" multiple Rows
I'm trying to collect or summarize the status of tasks based on a person, but each task is a separate row. Here is an example of data: Name Task Name Status Bob Smith Task 1 Completed ...
Ahmedx
Super User
3 years agopls try this
Measure 1 =
COALESCE(
CALCULATE(MAX('Table'[Task Name]),
CONTAINSSTRING("Pending",'Table'[Status])),"Completed")
------- or-----------
Measure 2 =
CALCULATE(SELECTEDVALUE('Table'[TaskName],"Completed"),
CONTAINSSTRING("Pending",'Table'[Status]))