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
Anonymous
Not applicable

Graph´s order goes off when sorting by accumulated

Hi, i currently have displayed in a graph an accumulated amount of debt over months. However, these months come from a DATEDIFF measure, transformed then into months with a chain of IFs and ordered by custom columns.

The thing is that if i want to see the accumulated debt correctly, (added "month" by "month"), i must order the graph by its measure, but this setting makes the "months" appeared unsorted. 

I want to see the accumulated debt correctly with the "Months" sorted, is that possible?

 

Thanks in advance.Gráfico Deuda.PNGMonth sorted.PNG

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Not very clear, but seem like you need a sort column

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

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
Anonymous
Not applicable

I´m already doing that. The months are ordered by a custom sorting column (displaying the month and its order in the next column). That way the months get ordered correctly. However, as soon as i order by cummulated debt to see it correctly, that month order dissapears.

Anonymous
Not applicable

Hi @Anonymous ,

 

According to your statement, I am confused about your sort logic. Do you want to sort your  visual by two columns? Power BI only support us to sort visual by one column. If you sort your table by "Month", you couldn't sort it by "%GT accumulated debt ". If you sort visual by "%GT accumulated debt " the month sort will disappear.

Could you explain more about your sort logic or share a sample file with us ? And you can show us a screenshot with the result you want.

 

Best Regards,
Rico Zhou

 

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

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