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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Pacotille
Regular Visitor

Cumulative bar chart issue with legend

Hello All,

I've been facing a problem on my data visualisation, i'm trying to make a decreasing cumulative bar chart with a legend.

Without legend, the result seems fine according to my data :

Pacotille_0-1686806795008.png

With my legend, it's going sideways :

Pacotille_1-1686806863417.png

My measure to cumulate is :

Cumulate = 

CALCULATE(

    SUM(datatest[(t)]),

    FILTER(ALLEXCEPT(datatest, datatest[classif]),

            MIN(datatest[grade_class]) <= datatest[grade_class]))
I already try to change with "ALL" but nothing good happend, any ideas ? I'm posting a link to my PBI and datasource
https://1drv.ms/f/s!AoAXhpbMPUDDhDaj0_7P0-Fc7J_g?e=cNKSRM
 
Thnaks in advance if anyone have an answer,
 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Pacotille 

After testing, when you add the legend, it cannot change the sort, so the best way is to move the legend.

Or you can add an index column in power query,then sort by the order column

You can refer to the following link.

Solved: Sort by legend on stacked bar chart - Microsoft Fabric Community

Best Regards!

Yolo Zhu

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

Hey,
Thank you for your answer, but i'm a bit lost here. I just want to display my decreasing cumulative chart which all the [classif] in each bar. How these solutions could help me ?

I've tried the solutions in your link but nothing seems to work

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.

Top Solution Authors
Top Kudoed Authors