Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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 Name | Project ID | Status |
| Sample1 | 1 | Won |
| Sample2 | 2 | Lost |
| Sample2 | 3 | Pursuing |
| Sample2 | 4 | Won |
| Sample3 | 5 | Lost |
| Sample3 | 6 | Lost |
| Sample4 | 7 | Won |
| Sample5 | 8 | Lost |
| Sample6 | 9 | Won |
| Sample6 | 10 | Pursuing |
| Sample7 | 11 | Won |
| Sample7 | 12 | Won |
| Sample7 | 13 | Won |
| Sample8 | 14 | Lost |
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!!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 33 | |
| 33 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 44 | |
| 30 | |
| 29 |