I have the following objects in Tableau dashboard: change_id and entry_date
Change_id is unique but entry_date can appear multiple times due to date of change modification.
As an example:
CH123 1/1/2022 1/3/2023 1/4/2023 1/5/2024
How do I create a field to display only last two dates?
I was trying the following: RANK(MAX({FIXED [Change ID]:max([Entry Date])})) and then filtering out only 1 and 2 values. It is working fine unless there are multiple change requests and Tableau starts to assign continuous numbers to all change requests.
Probably you can use this snippet (source):
adding
change_idto the dimensions to include into the context (so after theFIXEDwords).