Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
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 love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 20 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 35 | |
| 28 | |
| 20 | |
| 18 | |
| 17 |