Soldato
- Joined
- 22 Nov 2007
- Posts
- 4,209
Hi All
I've been going up the wall with trying to understand this concept in the last few days.
This is a calculated column and there are two tables, LearningPlan (1) and Activities (Many)
I understand how ALL works to remove filters in a visual but in a calculated column i'm lost.
I know that context transition introduces a filter context for the current row but don't we want to keep that context so we can find id's from the current row in the Activities row?
It seems like thats what is happening anyway except at first we remove the filters, only to put them back on.
I just don't get why?
I've been going up the wall with trying to understand this concept in the last few days.
This is a calculated column and there are two tables, LearningPlan (1) and Activities (Many)
I understand how ALL works to remove filters in a visual but in a calculated column i'm lost.
I know that context transition introduces a filter context for the current row but don't we want to keep that context so we can find id's from the current row in the Activities row?
It seems like thats what is happening anyway except at first we remove the filters, only to put them back on.
I just don't get why?
Code:
CALCULATE(
MAX(Activities[Submission date]) ,
FILTER ( ALL ( 'Activities'[LearnerID]) ,
'Activities'[LearnerID] = LearningPlan[LearnerID])
)