Forum Discussion
Anonymous
3 years agoNot applicable
Matrix aggregation and filtering
Hi, I need to group values in the matrix by Source and Destination columns. How can I achive this? Thanks for any advice Previous Segment = Source Currenct Segment = Destination ...
tamerj1
Community Champion
3 years agoAnonymous
Please try
Source =
VAR SelectedDate =
MIN ( 'Calendar'[Date] )
VAR CurrentIDTable =
FILTER ( 'Table', 'Table'[segment date] > SelectedDate )
VAR FirstRecord =
TOPN ( 1, CurrentIDTable, 'Table'[segment date], ASC )
RETURN
MAXX ( FirstRecord, 'Table'[segment_name] )