Forum Discussion
Circular dependency issue
I'm getting a circular dependency error that I can't figure out for the life of me. To start, I have a fairly simple formula to calculate a value on a daily basis:
| (field1 + field3)/ (field1 + field2) |
I want to display that as a daily value, as well as month-to-date and year-to-date. Using my actual field names, this is the formula:
6 Replies
- v-jiascu-msftMicrosoft Employee
Hi Alex,
Did you create a column instead of a measure accidentally?
Can you share a sample? Please mask the sensitive data first. Just see from your formula, it's simple and clear.
Best Regards,
- AnonymousNot applicable
Sorry, I forgot to include the file, which is here.
I created a column rather than measure because not all of the fields I wanted to reference were available when I tried to use a measure - that must be part of the problem. I spent some time this weekend learning DAX a little more deeply to see if I can get to the bottom of this, and suspect that the problem is that when I compare my MTD or YTD fields to the target value, the target value isn't an aggregate, it's just a static field on every row of data. So with MTD and YTD being aggregates, I'm thinking Power BI may not be able to find a specific row to get the target from. I'm going to try applying an average to that field and see if that might work.
If you do have time to take a look and can offer any other insight, it's much appreciated!
thanks
Alex
- v-jiascu-msftMicrosoft Employee