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.

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)