cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Multiple Measures Causing Circular Dependency

I have the following measures & columns:

 

Measures:

 

PYTD Hours = CALCULATE(sum(Table[Hours]), DATESBETWEEN([Date], 5/31/2017, NOW()))

MTD Hours = TOTALMTD(sum(Table[Hours]),[Date])

 

Columns:

 

MTD Variance Group =
if(Table[MTD Hours] > 100, ">20%",
if(Table[MTD Hours] >50,"10-20%",
if(Table[MTD Hours] > 20,"5-10%",
if(Table[MTD Hours] > 10, "0-5%",""))))

 

PYTD Variance Group =
if(Table[PYTD Hours] > 100, ">20%",
if(Table[PYTD Hours] >50,"10-20%",
if(Table[PYTD Hours] > 20,"5-10%",
if(Table[PYTD Hours] > 10, "0-5%",""))))

 

MTD Variance Group works, however I keep getting an error on PYTD Variance Group:

 

A circular dependency was detected: Table[PYTD Variance Group], Table[MTD Variance Group], Table[PYTD Variance Group]

 

Thoughts?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Multiple Measures Causing Circular Dependency

I realized that this issue is actually the result of a bigger issue related to not having a date table for earlier calculations. Thanks for everyones help!

View solution in original post

2 REPLIES 2
Highlighted
Solution Sage
Solution Sage

Re: Multiple Measures Causing Circular Dependency

Hi @teresadanna,

 

Please share (send) dummy data with expected results to figure out what you want to do.

 

Thank you.

 

Ninter

 

 

Highlighted
Frequent Visitor

Re: Multiple Measures Causing Circular Dependency

I realized that this issue is actually the result of a bigger issue related to not having a date table for earlier calculations. Thanks for everyones help!

View solution in original post

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors