Forum Discussion
DAX
Hi all,
I need some advice for a #DAX formula which should be a beginner error I am missing.
I have Table 1 and Table 2
I need to bring a summarized value for the two columns, see below the 2 measures and the error it brings the second one
I believe the error comes since it's doing the same formula for both columns but the scope is actually different
A circular dependency was detected: TABLE_1[FUTURE_REVENUE], TABLE_1[ACTUAL_REVENUE], TABLE_1[FUTURE_REVENUE].
Anonymous , Try a new column in Table 1
1- ACTUAL REVENUE =
SUMX(filter('TABLE_2','TABLE_2'[_OPPORTUNITY_ID] = TABLE_1[_OPPTY_ID],'TABLE_2'[INCLUDE_INSTOCK]=1),'TABLE_2'[ACTUAL_REVENUE])
2- Future Revenue = SUMX(filter('TABLE_2','TABLE_2'[_OPPORTUNITY_ID] = TABLE_1[_OPPTY_ID],'TABLE_2'[INCLUDE_INSTOCK]=1),'TABLE_2'[FUTURE_REVENUE])
1 Reply
- amitchandakSuper User
Anonymous , Try a new column in Table 1
1- ACTUAL REVENUE =
SUMX(filter('TABLE_2','TABLE_2'[_OPPORTUNITY_ID] = TABLE_1[_OPPTY_ID],'TABLE_2'[INCLUDE_INSTOCK]=1),'TABLE_2'[ACTUAL_REVENUE])
2- Future Revenue = SUMX(filter('TABLE_2','TABLE_2'[_OPPORTUNITY_ID] = TABLE_1[_OPPTY_ID],'TABLE_2'[INCLUDE_INSTOCK]=1),'TABLE_2'[FUTURE_REVENUE])