Forum Discussion
Anonymous
4 years agoNot applicable
Get Last value
Hi this is a classic but can't figure it out... Two unrelated tables : - a fact table with some controls on one side - another table with comments about controls (you can have many commen...
- 4 years ago
Anonymous , Try a new column in TAB_Controls like
_Last_Comment = var _max = maxx(FILTER(TAB_Comment, TAB_Comment[ID Control] = TAB_Controls[ID Control] ), TAB_Comment[Date]) return maxx(FILTER(TAB_Comment, TAB_Comment[ID Control] = TAB_Controls[ID Control] && TAB_Comment[Date] = _max), TAB_Comment[Comment])
amitchandak
4 years agoSuper User
Anonymous , Try a new column in TAB_Controls like
_Last_Comment = var _max = maxx(FILTER(TAB_Comment, TAB_Comment[ID Control] = TAB_Controls[ID Control] ), TAB_Comment[Date])
return maxx(FILTER(TAB_Comment, TAB_Comment[ID Control] = TAB_Controls[ID Control] && TAB_Comment[Date] = _max), TAB_Comment[Comment])
- Anonymous4 years agoNot applicable
Thanks amitchandak it works !