I have a list of documents that contains the same key but different dates,and I'm trying to bring all itens from key using data filter, im using Tableau Desktop.
For example, my table is:
Document | Date | Key |
---|---|---|
A | 01/01/2021 | X |
B | 01/02/2021 | X |
C | 01/03/2021 | X |
D | 01/04/2021 | X |
E | 01/05/2021 | X |
F | 01/06/2021 | X |
G | 01/07/2021 | Y |
H | 01/08/2021 | Y |
If I filter feb/2021, since my key X has the date 01/02/2021, results should be:
Document | Date | Key |
---|---|---|
A | 01/01/2021 | X |
B | 01/02/2021 | X |
C | 01/03/2021 | X |
D | 01/04/2021 | X |
E | 01/05/2021 | X |
F | 01/06/2021 | X |
Else if im filtering the date aug/2021, it should be:
Document | Date | Key |
---|---|---|
G | 01/07/2021 | Y |
H | 01/08/2021 | Y |
What I tried: I created a date parameter "Insert Date" to insert a single date and I created a calculated field "Select Date" using FIXED like the code bellow:
{ FIXED [Key] : MAX([Date] = [Insert Date])}
I got it done with a single day but i need using the entire month.