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!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!!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 39 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 95 | |
| 78 | |
| 34 | |
| 28 | |
| 25 |