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

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

Reply
eglissen
New Member

Charticulator Bar Chart not sorting correctly

Hi,

 

I am trying to apply custom sorting on a clustered bar chart, created in Charticulator.

We have Geography dimension (Country names) in y axis and two measures in X axis – amount of Sales A and amount of Sales B.

The requirement is that the chart would always be sorted descending by Sales B amount (simplified version of the visual as below).

 

graph 1.PNG

 

These are the settings I use in Charticulator.

 

Picture1.png

 

 

 

 

 

We have a slicer that is modifying Geography dimension.

The sorting is working well when the Geography slicer is set to the same selection as when the Charticulator chart was saved. However, when the Geography slicer selection is changed, i.e. other countries are selected, sorting is reset back to order by “Geography” (see example below).

 

Is there a way to ensure that the same sorting logic is applied even when y axis is adjusted based on slicer input?

Thanks in advance for any advice!

 

 

graph 2.PNG

 

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

Hi @eglissen ,

 

Please create a measure to rank them in all the table.

vchenwuzmsft_0-1661333195286.png

 

Measure:

Measure =
RANKX (
    CALCULATETABLE (
        VALUES ( global_resource_trade_links[Region] ),
        ALLSELECTED ( global_resource_trade_links )
    ),
    CALCULATE ( SUM ( global_resource_trade_links[Amount] ) ),
    ,
    DESC
)

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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
v-chenwuz-msft
Community Support
Community Support

Hi @eglissen ,

 

Please create a measure to rank them in all the table.

vchenwuzmsft_0-1661333195286.png

 

Measure:

Measure =
RANKX (
    CALCULATETABLE (
        VALUES ( global_resource_trade_links[Region] ),
        ALLSELECTED ( global_resource_trade_links )
    ),
    CALCULATE ( SUM ( global_resource_trade_links[Amount] ) ),
    ,
    DESC
)

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

 

ronaldbalza2023
Continued Contributor
Continued Contributor

Hi @eglissen , hope you are having a great day. Please see this link that may help you solving this.
Using in Power BI | Charticulator

ronaldbalza2023_0-1661129014093.png

 

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.

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