I have a dataset with following columns
date value productgroup
20240131 123 ABC
20240131 456 DEF
20231231 789 ABC
20231231 019 DEF
I have a filter dropdown for date= 20240131. I want another calculated column which is end of previous month ( 20231231 ) so report should look like below. And if I change the filter to 20231231 , it should show me 20231231 as current and 20231131 previous and so on. What is the way to achieve this in quicksight?
CurrentMonth Previous Month CurrentValue previousvalue productgroup
20240131 20231231 123 789 ABC
20240131 20231231 456 019 DEF
What function can help me do this in quicksight?
Thanks,
Rohit