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.
ERD
5 years agoCommunity Champion
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.