Forum Discussion

cuongle's avatar
cuongle
Icon for Advocate II rankAdvocate II
10 years ago

Sort Column Chart based on column which is not included into visual

Assume I have column chart with:

 

1. Name: on Axis field.

2. PaymentDayDiff on Value field.

 

But I want to sort the columns chart based on another column call `Spend` which is not available on Sort dropdown (because `spend` is not included into `Axis` or `Value`)

 

How can I do this?

 

 

 

 

6 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    In Desktop, you can go into your model, choose your column and set the "Sort By" column. 5th button from the left on the Modeling tab of the ribbon.

    • cuongle's avatar
      cuongle
      Icon for Advocate II rankAdvocate II

      Thanks for your answer, but I am afraid that it does not work, the reason might be I did filter and select top n (use RANKX) for this column chart?

      • Greg_Deckler's avatar
        Greg_Deckler
        Icon for Community Champion rankCommunity Champion

        Hmm, are you getting any error or are you setting the Sort By column and the visual is not honoring it?

         

        I have run into an issue using FIRSTDATE on a custom column and then trying to use it as a Sort By column and received an error that I was not allowed to do that. That's the only time I have had this not work.

    • Anonymous's avatar
      Anonymous
      Not applicable

      yo this works