Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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!!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |