Hi friends,
I have a pivot table, that changes based on the date parameter user selection.
The sorting(highest to lowest) of a column is not getting preserved when the user selects a different date.
the sorting is preserved only for the dates that were used in Analyse mode.
I am trying to sort it by cost(last but one column),
sorting done in analyse view
sorting not working after user selects a different date- I expect the highest value $4864.41 to appear at the top even for the week 2024-06-19- 2024-06-25
Can you try sorting the Group Field based on Cost field? That should enable sorting even when dates are changed. Since you are sorting by the specific date field, the sorting order is not automatically carried forward.
For the pivot table, you will need to sort by the row field. However since you have column field as well, it will be wise to use a sortkey to sort the rows.
Step 1: Create a calculated field sortkey based on ranking of current week data.
Step 2: from the rows field well, sort using a off visual field.
Hi @Amit_Raj, did this solution work for you? I am marking this reply as, “Solution,” but let us know if this is not resolved. Thanks for posting your questions on the QuickSight Community!
and SelectEndDate is the user input from a parameter.
The dates in the column line_item_usage_date are in below format-
2024-07-06T00:00:00.000Z
2024-07-07T00:00:00.000Z
2024-07-08T00:00:00.000Z