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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
wilbur750
Frequent Visitor

Ordering month numbers - Circular dependency was detected

Hi all

 

I have a monthly data table that has the Month-name in full e.g. January and the fiscal year e.g. 2017-18.  I have created a Month-order column where April =1, May = 2, etc. which is calculated if Month-name="April" then 1, etc. However, when I try to sort the Month-name so it shows on a chart axis as April, May, June, etc, I am trying to sort the Month-name by Month-order column but I get a circular dependency was detected error. 

 

I think I can see why its telling me that as the month-order is calculated from the name, but how do I get around it?  I cant add the month number to the raw data file.

 

Thanks

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

https://www.sqlbi.com/articles/sorting-months-in-fiscal-calendars/

SQLBI has a pretty good write-up about doing a custom fiscal year calendar, have a read and hopefully that will answer your question. You will probably need to create a custom calendar, depending on what your data looks like.

View solution in original post

2 REPLIES 2
wilbur750
Frequent Visitor

Thanks!  I have created a custom calendar now and it sorts the issue 🙂

vicky_
Super User
Super User

https://www.sqlbi.com/articles/sorting-months-in-fiscal-calendars/

SQLBI has a pretty good write-up about doing a custom fiscal year calendar, have a read and hopefully that will answer your question. You will probably need to create a custom calendar, depending on what your data looks like.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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