Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Das2020
Regular Visitor

Stacked Column Bar Percentage with Sorting

Hi Team,

I have this dilemma for stacked column bar. I have this visual where the contract and client has rating based on fees and scopes. As I learn from here you can create a measure that you can put on the tooltip to indicate the percentage of relationship.

Source fileSource file

I created a measure that I can use on the tool tip. Unfortunate my boss wants the category to be in Rating 1, Rating 2, Rating 3 and N/A. (by default BI is treating it alphabeticallyI created a measure that I can use on the tool tip. Unfortunate my boss wants the category to be in Rating 1, Rating 2, Rating 3 and N/A. (by default BI is treating it alphabetically


From my previous experience on fiscal month reporting, I created duplicate table so I can have sorting table.From my previous experience on fiscal month reporting, I created duplicate table so I can have sorting table.

Created a conditional columnCreated a conditional column

 

Create a relationship from the first tableCreate a relationship from the first table

and the Rating % measure goes brokenand the Rating % measure goes broken

2 REPLIES 2
komald
Helper I
Helper I

@Das2020 , try this

in sheet1 table create new column for sorting purpose
sort_rating= switch(true(),
sheet1[relationship]="rating 1",1,
sheet1[relationship]="rating 2",2,
sheet1[relationship]="rating 3",3,"NA")

and sort relationship on the basis of sort_rating column by asc order.

I hope this will work for you. Thank you

I also did a similar but using conditional formating from query editor, yes this will sort the relationship but the measure that I created for tooltip will result in all 100% regardless if it's Rating 1, Rating 2, Rating 3 or N/A. Just wondering what can I adjust from the Rating % measure

7.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.