Forum Discussion
Aggregate by date, unsolved circular reference error
- Anonymous4 years ago
Hi Anonymous ,
You can create a calculated column or measure as below to get [Outstanding notional], please find the details in the attachment...
Calculated column:
Outstanding notional = CALCULATE ( SUM ( 'Summary'[Cash flow] ), FILTER ( 'Summary', 'Summary'[Date] >= EARLIER ( 'Summary'[Date] ) ) )Measure:
Measure = VAR _seldate = SELECTEDVALUE ( 'Summary'[Date] ) RETURN CALCULATE ( SUM ( 'Summary'[Cash flow] ), FILTER ( ALLSELECTED ( 'Summary' ), 'Summary'[Date] >= _seldate ) )Running (Cumulative) Totals in Power BI
Cumulative Total/ Running Total in Power BI
In addition, you can refer the following links to understand the circular dependencies and how to avoid circular dependencies...
Understanding circular dependencies in DAX
Avoiding circular dependency errors in DAX
Best Regards
Hi Anonymous ,
You can create a calculated column or measure as below to get [Outstanding notional], please find the details in the attachment...
Calculated column:
Outstanding notional =
CALCULATE (
SUM ( 'Summary'[Cash flow] ),
FILTER ( 'Summary', 'Summary'[Date] >= EARLIER ( 'Summary'[Date] ) )
)
Measure:
Measure =
VAR _seldate =
SELECTEDVALUE ( 'Summary'[Date] )
RETURN
CALCULATE (
SUM ( 'Summary'[Cash flow] ),
FILTER ( ALLSELECTED ( 'Summary' ), 'Summary'[Date] >= _seldate )
)
Running (Cumulative) Totals in Power BI
Cumulative Total/ Running Total in Power BI
In addition, you can refer the following links to understand the circular dependencies and how to avoid circular dependencies...
Understanding circular dependencies in DAX
Avoiding circular dependency errors in DAX
Best Regards
- Anonymous4 years agoNot applicable
Thanks! This seems to work. Also big thanks for uploading a Power BI file and links to circular references in Power BI!