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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
chinaik123
Helper I
Helper I

A circular dependency was detected

Hi , I require help for Circular Dependency.

 

Basically i wish to count my orders that is due for the next 2 weeks (e.g from 31/5 to 16/6) and 1 month (31/5 to 30/6)
I have come up with the calculated column for 2 weeks. However, when i am using the same column for the 1 month, it showed me that a circular dependency has occured.

 

Order (Two weeks)=
CALCULATE
(SUM('Sheet1'[Qty R]),
FILTER(ALLNOBLANKROW('Sheet1'[Date]),
Sheet1[Date]>=WEEKNUM(TODAY(),1) && Sheet1[Ex In Date week]<=WEEKNUM(TODAY(),1)+2))

I changed the +2 at the end to a +4 to calculate monthly but the error then occurs.
chinaik123_0-1685524378649.png


Could anyone help in this?

3 REPLIES 3
chinaik123
Helper I
Helper I

Hi @aggiebrown , is the link to the sample data OK? 

 

aggiebrown
Helper III
Helper III

Hi @chinaik123,

 

Can you please share your sample data?

Hi @aggiebrown  Please find the excel file provided 
https://www.dropbox.com/scl/fi/zdaaiqzaoginoxb4a7hk2/sample-data.xlsx?dl=0&rlkey=dj9mk84skew4ixsvjpr...

 

chinaik123_0-1685590198333.png

The sample output is that if the Incoming date falls under today date plus 2 weeks then the quantity should be taken. 

In power BI, i am using the formula as shown on top.

 

Thanks,

Ricky

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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