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
H_Aqua8
New Member

Negative and Positive bar chart ordering

Hello,

 

I have a Bar chart in Power BI with both negative and positive values, When i do the bottom top 10 of the visual with sorting by ascending order , the negative appear first and then followed by the positive ones, Is there any ways for the negative value to either be made at the bottom of the visual while keeping the top 10 ascending order or using the absolute value but making the negative to appear different in the bar chart still at the bottom. 

 

Is there any better visual for negative and positive values?

 

Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from @Joe_Barry , please allow me to provide another insight: 
Hi  @H_Aqua8 ,

I created some data:

vyangliumsft_0-1721978810860.png

 

 

Here are the steps you can follow:

1. Create measure.

Rankx =
RANKX(
    ALLSELECTED('Table'),CALCULATE(SUM('Table'[Amount])),,DESC)
Flag =
IF(
    [Rankx]<=10 || MAX('Table'[Amount])<0,1,0)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1721978810862.png

3. Sort axis – Sort descending.

vyangliumsft_2-1721978849263.png

4. Result:

vyangliumsft_3-1721978849269.png

 

 

Best Regards,

Liu Yang

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

2 REPLIES 2
Anonymous
Not applicable

Thanks for the reply from @Joe_Barry , please allow me to provide another insight: 
Hi  @H_Aqua8 ,

I created some data:

vyangliumsft_0-1721978810860.png

 

 

Here are the steps you can follow:

1. Create measure.

Rankx =
RANKX(
    ALLSELECTED('Table'),CALCULATE(SUM('Table'[Amount])),,DESC)
Flag =
IF(
    [Rankx]<=10 || MAX('Table'[Amount])<0,1,0)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1721978810862.png

3. Sort axis – Sort descending.

vyangliumsft_2-1721978849263.png

4. Result:

vyangliumsft_3-1721978849269.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Joe_Barry
Super User
Super User

Hi @H_Aqua8 

 

Are you sorting by the Values? If there is other data in the visual, it could be sorting on this instead. Regarding visuals for Ranking, you could use a funnel or a clustered bar chart.

 

Hope this helps

Joe




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

Proud to be a Super User!





Learn about the Star Schema, it will solve many issues in Power BI!

Date tables help! Learn more



LinkedIn


Let's connect on LinkedIn


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.