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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.