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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

sorting a bar chart

Hello, I have a bar chart on X, I have the consumption which is a sum. 

I tried to sort the graph by this sum column but there are few miskates, on descending order.

How can i solve that problem? 

francoise_ru_0-1659082702891.png

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

I have chosen two operations for comparison. 

 

vkkfmsft_0-1659410069748.png

 

In the bar chart, it actually sorts by the summary value of [Consumption TN600] in table 'airfleets_tab' (i.e. the data on the left), while after adding the legend, the data is displayed in the form on the right because of the filtering of the relationship between tables.

 

vkkfmsft_1-1659410095923.png

 

So please try to use the following measure and sort it.

 

Measure = 
CALCULATE (
    SUM ( airfleets_tab[Consumption TN600] ),
    VALUES ( fusion_qualif_airfleets[ENG_TN 600] )
)

vkkfmsft_2-1659410442306.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

I have chosen two operations for comparison. 

 

vkkfmsft_0-1659410069748.png

 

In the bar chart, it actually sorts by the summary value of [Consumption TN600] in table 'airfleets_tab' (i.e. the data on the left), while after adding the legend, the data is displayed in the form on the right because of the filtering of the relationship between tables.

 

vkkfmsft_1-1659410095923.png

 

So please try to use the following measure and sort it.

 

Measure = 
CALCULATE (
    SUM ( airfleets_tab[Consumption TN600] ),
    VALUES ( fusion_qualif_airfleets[ENG_TN 600] )
)

vkkfmsft_2-1659410442306.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

sry, i can't open the link you shared. what about using onedrive?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

yes i already choose the right columns

could you pls provide the pbix file or sample data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




ryan_mayu
Super User
Super User

@Anonymous 

 

pls select the right column or measure to sort.

1.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors