I have created a date dropdown control, based on the requirement
Since we don’t have any option to display this in descending order, I need to attach some prefix to display the latest date first. I am attaching my Report month calculation here, How can I add a prefix to this report month so that the dates will appear in descending order using quick sight calculation?
These are the calculations I am using to calculate report month (string datatype).
Year =toString(extract(‘YYYY’,{report_date}))
Month= extract(‘MM’,{report_date})
MM=ifelse(Month=1,‘01’,
Month=2,‘02’,
Month=3,‘03’,
Month=4,‘04’,
Month=5,‘05’,
Month=6,‘06’,
Month=7,‘07’,
Month=8,‘08’,
Month=9,‘09’,
Month=10,‘10’,
Month=11,‘11’,‘12’)
Report Month= concat(Year,‘-’,MM)
Please help to attach a prefix to this from quicksight side, so that I can display the Report months in descending order