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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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