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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
admin11
Memorable Member
Memorable Member

My stack bar chart unable to sort by sales ?

Hi All

i have a stack bar chart , i am unable to sort by sales amount. may i know why ?

admin11_0-1617785968335.png

my PBI file :-

https://www.dropbox.com/s/fdrvh69jyrp4jj2/PBT_V2021_396%20TI_SI_GL%20SAMPLE_.pbix?dl=0

 

Paul

 

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @admin11 ,

 

Your chart is alreday sorted by SALES metric. You can test it out as follows:

 

Remove CUSTOMER NAME from legend part, you get the following chart which is sorted by SALES in descending order:

Pragati11_0-1617787859111.png

 

Now when you move the CUSTOMER NAME as the legend, the sorting stays same:

Pragati11_1-1617787958824.png

Compare the highlighted X-axis in both the above charts which are in same order with Legend and without Legend. This suggestes they are sorted by sales metric.

 

The chart is confusing because you are using a Stacked Column Chart which is showing a distribution of every CUSTOMER within a GROUP CLASS.

 

Thanks,

Pragati

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

4 REPLIES 4
Pragati11
Super User
Super User

Hi @admin11 ,

 

Your chart is alreday sorted by SALES metric. You can test it out as follows:

 

Remove CUSTOMER NAME from legend part, you get the following chart which is sorted by SALES in descending order:

Pragati11_0-1617787859111.png

 

Now when you move the CUSTOMER NAME as the legend, the sorting stays same:

Pragati11_1-1617787958824.png

Compare the highlighted X-axis in both the above charts which are in same order with Legend and without Legend. This suggestes they are sorted by sales metric.

 

The chart is confusing because you are using a Stacked Column Chart which is showing a distribution of every CUSTOMER within a GROUP CLASS.

 

Thanks,

Pragati

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 Lady are very detail. Thank

I like detailed and clear responses. 🙂

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

amitchandak
Super User
Super User

@admin11 , On the three dots you have the option to sort my measure(sales). Try to use that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors