Forum Discussion
Anonymous
5 years agoNot applicable
Remove Row context without removing Filter Context
Hello, Hope someone can help. I have: - the next table: Step Result Date Build 1 Failed 10/02/2021 A 1 Failed 10/03/2021 B 1 Passed 11/03/2021 B 2 Failed ...
- 5 years ago
Hi Anonymous ,
Please, try the next measure:
latestDate = VAR currStep = MAX ( T[Step] ) RETURN CALCULATE ( MAX ( T[Date] ), FILTER ( ALLSELECTED ( T ), T[Step] = currStep ) )If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.
- 5 years ago
Anonymous ,
You can try this measure instead:
count = VAR _t = FILTER ( ADDCOLUMNS ( SUMMARIZE ( T, T[Step], T[Result], T[Build] ), "@check", VAR maxDatePerStep = CALCULATE ( MAX ( T[Date] ), ALLEXCEPT ( T, T[Step], T[Build] ) ) VAR maxDatePerResult = CALCULATE ( MAX ( T[Date] ) ) RETURN maxDatePerStep = maxDatePerResult ), [@check] = TRUE () ) RETURN COUNTROWS ( _t )If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
Great!!
Thank you very much. I've mixed both answers, in order to be able to select more than one build, and it's working perfectly.
Best regards
Iván