Forum Discussion

Tihannah's avatar
Tihannah
Resolver II
1 year ago
Solved

Visual sort keeps reverting back??

I have a bar chart visual displaying revenue by type and am using a parameter that allows the user to click between MTD, QTD and YTD for Total Revenue. I want the visual sorted by Total Revenue highe...
  • lbendlin's avatar
    lbendlin
    1 year ago

    Try without a parameter. Although it may result in the same issue as you are swapping out and then in the column the visual relies on for sorting. 

     

    - create a measure that reads the button selection and then provides the value based on a computation in the same measure (try to avoid nesting measures). 

    - use the measure instead of the parameter

    - sort by the measure.

    - change the selection and see if the sort stays.