Forum Discussion

Jairacha's avatar
Jairacha
Frequent Visitor
3 years ago

Custom Sort Order - Stacked bar chart

Hi, I would like to sort my data based on two parameters. I would like to sort the data by Client Names that have the most number of Project IDs associated with them as well as the highest % win ratio for these Clients (win/(win+lost)). How can i achieve this on a stacked bar chart? I've attached the sample dataset below. Thank you!!

 

Client NameProject IDStatus
Sample11Won
Sample22Lost
Sample23Pursuing
Sample24Won
Sample35Lost
Sample36Lost
Sample47Won
Sample58Lost
Sample69Won
Sample610Pursuing
Sample711Won
Sample712Won
Sample713Won
Sample814Lost

2 Replies

  • Jairacha , if client is on the axis, then you can add a measure in the tooltip and use that for sorting.

     

     

    • Jairacha's avatar
      Jairacha
      Frequent Visitor

      Hi amitchandak , thanks so much for your suggesstion! Would you be able to guide me through what the DAX expression would look like for such a calculation (Clients with most number of Project IDs associated with them as well as the highest win%)? Appreciate the help!!