forrestgump
New Member
- Joined
- Sep 30, 2010
- Messages
- 22
Hi there,
I have 2 tables. 1 called 'HeadcountTble' the other called 'SurveyTble'. The 'HeadcountTable' is normalized and has unique ids per person. The SurveyTble has multiple rows per person. The tables are linked 1 to many from the 'HeadcountTble' to the 'SurveyTble'. What i want to do is extract the max Report date per person in the survey table and enter it into a column in the 'HeadcountTble' or create a measure to be able to do this, or both if possible (As a measure and a calculated column).
I have tried as a calculated column for now 'Report Date = MAX(SurveyTble[Report date])' however this gives the maximum value over the whole table. I am guessing I need to filter the table first by the id and then find the max Report date from that table???
I will keep trying but any help would be greatly appreciated.
Kind regards,
Forrestgump
I have 2 tables. 1 called 'HeadcountTble' the other called 'SurveyTble'. The 'HeadcountTable' is normalized and has unique ids per person. The SurveyTble has multiple rows per person. The tables are linked 1 to many from the 'HeadcountTble' to the 'SurveyTble'. What i want to do is extract the max Report date per person in the survey table and enter it into a column in the 'HeadcountTble' or create a measure to be able to do this, or both if possible (As a measure and a calculated column).
I have tried as a calculated column for now 'Report Date = MAX(SurveyTble[Report date])' however this gives the maximum value over the whole table. I am guessing I need to filter the table first by the id and then find the max Report date from that table???
I will keep trying but any help would be greatly appreciated.
Kind regards,
Forrestgump