<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic a circular dependency was detected measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3598562#M139045</link>
    <description>&lt;P&gt;Feedback Type:&lt;BR /&gt;Frown (Error)&lt;/P&gt;&lt;P&gt;Timestamp:&lt;BR /&gt;2023-12-22T09:33:08.3218659Z&lt;/P&gt;&lt;P&gt;Local Time:&lt;BR /&gt;2023-12-22T17:33:08.3218659+08:00&lt;/P&gt;&lt;P&gt;Session ID:&lt;BR /&gt;8bf082bf-c1ef-4518-854f-5f200520785b&lt;/P&gt;&lt;P&gt;Release:&lt;BR /&gt;November 2023&lt;/P&gt;&lt;P&gt;Product Version:&lt;BR /&gt;2.123.742.0 (23.11) (x64)&lt;/P&gt;&lt;P&gt;Stack Trace:&lt;BR /&gt;Microsoft.PowerBI.Modeler.ModelingASOperationException&lt;BR /&gt;at Microsoft.PowerBI.Modeler.ModelManager.&amp;lt;&amp;gt;c__DisplayClass215_0.&amp;lt;SaveChanges&amp;gt;b__0()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Modeling.Hosting.ModelingTelemetryService.&amp;lt;&amp;gt;c__DisplayClass6_0`1.&amp;lt;RunInActivity&amp;gt;b__0()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Modeling.Hosting.ModelingTelemetryService.RunInActivity(ModelingActivityKind activity, Action action)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Modeling.Hosting.ModelingTelemetryService.RunInActivity[T](ModelingActivityKind activity, Func`1 action)&lt;BR /&gt;at Microsoft.PowerBI.Modeler.ModelEditor.EditMeasureExpression(Measure measure, String expression)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.SchemaChangeApplier.Visit(UpdateExpressionSchemaChange schemaChange)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.SchemaChangeApplier.Apply(IModelManager modelManager, IEnumerable`1 changes, IRefreshPolicyUpdater refreshPolicyUpdater, IPrivateInformationService privateInformationService)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.ModelAuthoringTransaction.&amp;lt;&amp;gt;c__DisplayClass27_0.&amp;lt;ExecuteChange&amp;gt;b__0(IEnumerable`1 changes)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.ModelAuthoringTransaction.ExecuteChange(ModelChange modelChange, Boolean isTrustedSource, Boolean saveChange, ISchemaChangeApplierFactory schemaChangeApplierFactory, IRefreshPolicyUpdater refreshPolicyUpdater, IPrivateInformationService piiService, String descriptionToTrace)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.ExtendedModelChangeScope.ExecuteChange(ModelChange modelChange, Boolean isTrustedSource, Boolean saveChange, String descriptionToTrace)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.ModelingEngine.&amp;lt;&amp;gt;c__DisplayClass16_1.&amp;lt;RouteModelChangeAsync&amp;gt;b__3(IExtendedModelChangeScope scope)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.ModelingEngine.&amp;lt;&amp;gt;c__DisplayClass16_1.&amp;lt;RouteModelChangeAsync&amp;gt;b__4(IExtendedModelChangeScope scope)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.&amp;lt;&amp;gt;c__DisplayClass11_0.&amp;lt;RunExtendedModelChangeAsync&amp;gt;b__0(IExtendedModelChangeScope scope)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.&amp;lt;&amp;gt;c__DisplayClass12_0.&amp;lt;&amp;lt;RunExtendedModelChangeAsync&amp;gt;b__0&amp;gt;d.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.&amp;lt;ContinueWithAsyncOperation&amp;gt;d__15.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.ModelingEngine.&amp;lt;RouteModelChangeAsync&amp;gt;d__16.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.&amp;lt;&amp;gt;c.&amp;lt;WaitOnUIThreadForTaskCompletion&amp;gt;b__15_0(Task t)&lt;BR /&gt;at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()&lt;BR /&gt;at System.Threading.Tasks.Task.Execute()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Report.&amp;lt;&amp;gt;c__DisplayClass74_0.&amp;lt;&amp;lt;SynchronizeLooselyWithQueriesAsync&amp;gt;b__0&amp;gt;d.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Report.&amp;lt;SynchronizeLooselyWithQueriesAsync&amp;gt;d__73`1.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Modeling.ModelAuthoringRoutingService.&amp;lt;&amp;gt;c__DisplayClass19_0.&amp;lt;&amp;lt;RouteToLocalModel&amp;gt;b__0&amp;gt;d.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.WaitOnUIThreadForTaskCompletion[T](Task`1 task)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.CommitHandler.TryCommitPendingUIEdits()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.MainWindow.OnFileSaving(FileSavingEventArgs eventArgs)&lt;BR /&gt;at Microsoft.Practices.Prism.PubSubEvents.EventSubscription`1.&amp;lt;&amp;gt;c__DisplayClass2.&amp;lt;GetExecutionStrategy&amp;gt;b__0(Object[] arguments)&lt;BR /&gt;at Microsoft.Practices.Prism.PubSubEvents.EventBase.InternalPublish(Object[] arguments)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Services.EventAggregationService.&amp;lt;&amp;gt;c__DisplayClass22_0`2.&amp;lt;PublishAndMarshalExceptions&amp;gt;b__0()&lt;BR /&gt;at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)&lt;/P&gt;&lt;P&gt;PowerBINonFatalError:&lt;BR /&gt;{"AppName":"PBIDesktop","AppVersion":"2.123.742.0","ModuleName":"Microsoft.PowerBI.Modeler.dll","Component":"Microsoft.PowerBI.Modeler.ModelManager+&amp;lt;&amp;gt;c__DisplayClass215_0","Error":"Microsoft.PowerBI.Modeler.ModelingASOperationException","MethodDef":"&amp;lt;SaveChanges&amp;gt;b__0 - PFE_XL_CALCCOLUMN_CIRCULAR_DEPENDENCIES","ErrorOffset":"97","ErrorCode":""}&lt;/P&gt;&lt;P&gt;InnerException0.Stack Trace:&lt;BR /&gt;at Microsoft.AnalysisServices.Tabular.Model.SaveChangesImpl(SaveFlags flags, Int32 maxParallelism)&lt;BR /&gt;at Microsoft.PowerBI.Modeler.ModelManager.&amp;lt;&amp;gt;c__DisplayClass215_0.&amp;lt;SaveChanges&amp;gt;b__0()&lt;/P&gt;&lt;P&gt;OS Version:&lt;BR /&gt;Microsoft Windows NT 10.0.19044.0 (x64 en-US)&lt;/P&gt;&lt;P&gt;CLR Version:&lt;BR /&gt;4.8 or later [Release Number = 528372]&lt;/P&gt;&lt;P&gt;Peak Virtual Memory:&lt;BR /&gt;72.6 GB&lt;/P&gt;&lt;P&gt;Private Memory:&lt;BR /&gt;1.91 GB&lt;/P&gt;&lt;P&gt;Peak Working Set:&lt;BR /&gt;1.77 GB&lt;/P&gt;&lt;P&gt;IE Version:&lt;BR /&gt;11.3636.19041.0&lt;/P&gt;&lt;P&gt;User ID:&lt;BR /&gt;59ab7ff0-29a3-4721-be97-cfff53061e0a&lt;/P&gt;&lt;P&gt;Workbook Package Info:&lt;BR /&gt;1* - en-US, Query Groups: 4, fastCombine: Disabled, runBackgroundAnalysis: False.&lt;/P&gt;&lt;P&gt;Telemetry Enabled:&lt;BR /&gt;True&lt;/P&gt;&lt;P&gt;Model Default Mode:&lt;BR /&gt;Composite&lt;/P&gt;&lt;P&gt;Model Version:&lt;BR /&gt;PowerBI_V3&lt;/P&gt;&lt;P&gt;Enabled Preview Features:&lt;BR /&gt;PBI_shapeMapVisualEnabled&lt;BR /&gt;PBI_qnaLiveConnect&lt;BR /&gt;PBI_b2bExternalDatasetSharing&lt;BR /&gt;PBI_enhancedTooltips&lt;BR /&gt;PBI_sparklines&lt;BR /&gt;PBI_scorecardVisual&lt;BR /&gt;PBI_NlToDax&lt;BR /&gt;PBI_fieldParametersSuperSwitch&lt;BR /&gt;PBI_angularRls&lt;BR /&gt;PBI_onObject&lt;BR /&gt;PBI_backstageUI&lt;BR /&gt;PBI_setLabelOnExportPdf&lt;BR /&gt;PBI_dynamicFormatString&lt;BR /&gt;PBI_oneDriveSave&lt;BR /&gt;PBI_oneDriveShare&lt;BR /&gt;PBI_gitIntegration&lt;BR /&gt;PBI_newCard&lt;BR /&gt;PBI_buttonSlicerAuthoring&lt;BR /&gt;PBI_modelExplorer&lt;BR /&gt;PBI_daxQueryView&lt;BR /&gt;PBI_aiNarrativesVisual&lt;BR /&gt;PBI_qnaImproveLsdlCopilot&lt;/P&gt;&lt;P&gt;Disabled Preview Features:&lt;BR /&gt;PBI_SpanishLinguisticsEnabled&lt;/P&gt;&lt;P&gt;Disabled DirectQuery Options:&lt;BR /&gt;TreatHanaAsRelationalSource&lt;/P&gt;&lt;P&gt;Cloud:&lt;BR /&gt;GlobalCloud&lt;/P&gt;&lt;P&gt;DPI Scale:&lt;BR /&gt;150%&lt;/P&gt;&lt;P&gt;Supported Services:&lt;BR /&gt;Power BI&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 09:50:30 GMT</pubDate>
    <dc:creator>Max_WH</dc:creator>
    <dc:date>2023-12-22T09:50:30Z</dc:date>
    <item>
      <title>a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3598562#M139045</link>
      <description>&lt;P&gt;Feedback Type:&lt;BR /&gt;Frown (Error)&lt;/P&gt;&lt;P&gt;Timestamp:&lt;BR /&gt;2023-12-22T09:33:08.3218659Z&lt;/P&gt;&lt;P&gt;Local Time:&lt;BR /&gt;2023-12-22T17:33:08.3218659+08:00&lt;/P&gt;&lt;P&gt;Session ID:&lt;BR /&gt;8bf082bf-c1ef-4518-854f-5f200520785b&lt;/P&gt;&lt;P&gt;Release:&lt;BR /&gt;November 2023&lt;/P&gt;&lt;P&gt;Product Version:&lt;BR /&gt;2.123.742.0 (23.11) (x64)&lt;/P&gt;&lt;P&gt;Stack Trace:&lt;BR /&gt;Microsoft.PowerBI.Modeler.ModelingASOperationException&lt;BR /&gt;at Microsoft.PowerBI.Modeler.ModelManager.&amp;lt;&amp;gt;c__DisplayClass215_0.&amp;lt;SaveChanges&amp;gt;b__0()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Modeling.Hosting.ModelingTelemetryService.&amp;lt;&amp;gt;c__DisplayClass6_0`1.&amp;lt;RunInActivity&amp;gt;b__0()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Modeling.Hosting.ModelingTelemetryService.RunInActivity(ModelingActivityKind activity, Action action)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Modeling.Hosting.ModelingTelemetryService.RunInActivity[T](ModelingActivityKind activity, Func`1 action)&lt;BR /&gt;at Microsoft.PowerBI.Modeler.ModelEditor.EditMeasureExpression(Measure measure, String expression)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.SchemaChangeApplier.Visit(UpdateExpressionSchemaChange schemaChange)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.SchemaChangeApplier.Apply(IModelManager modelManager, IEnumerable`1 changes, IRefreshPolicyUpdater refreshPolicyUpdater, IPrivateInformationService privateInformationService)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.ModelAuthoringTransaction.&amp;lt;&amp;gt;c__DisplayClass27_0.&amp;lt;ExecuteChange&amp;gt;b__0(IEnumerable`1 changes)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.ModelAuthoringTransaction.ExecuteChange(ModelChange modelChange, Boolean isTrustedSource, Boolean saveChange, ISchemaChangeApplierFactory schemaChangeApplierFactory, IRefreshPolicyUpdater refreshPolicyUpdater, IPrivateInformationService piiService, String descriptionToTrace)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.ExtendedModelChangeScope.ExecuteChange(ModelChange modelChange, Boolean isTrustedSource, Boolean saveChange, String descriptionToTrace)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.ModelingEngine.&amp;lt;&amp;gt;c__DisplayClass16_1.&amp;lt;RouteModelChangeAsync&amp;gt;b__3(IExtendedModelChangeScope scope)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.ModelingEngine.&amp;lt;&amp;gt;c__DisplayClass16_1.&amp;lt;RouteModelChangeAsync&amp;gt;b__4(IExtendedModelChangeScope scope)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.&amp;lt;&amp;gt;c__DisplayClass11_0.&amp;lt;RunExtendedModelChangeAsync&amp;gt;b__0(IExtendedModelChangeScope scope)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.&amp;lt;&amp;gt;c__DisplayClass12_0.&amp;lt;&amp;lt;RunExtendedModelChangeAsync&amp;gt;b__0&amp;gt;d.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.Authoring.AsyncModelAuthoringService.&amp;lt;ContinueWithAsyncOperation&amp;gt;d__15.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Modeling.Engine.ModelingEngine.&amp;lt;RouteModelChangeAsync&amp;gt;d__16.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.&amp;lt;&amp;gt;c.&amp;lt;WaitOnUIThreadForTaskCompletion&amp;gt;b__15_0(Task t)&lt;BR /&gt;at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()&lt;BR /&gt;at System.Threading.Tasks.Task.Execute()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Report.&amp;lt;&amp;gt;c__DisplayClass74_0.&amp;lt;&amp;lt;SynchronizeLooselyWithQueriesAsync&amp;gt;b__0&amp;gt;d.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Report.&amp;lt;SynchronizeLooselyWithQueriesAsync&amp;gt;d__73`1.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Modeling.ModelAuthoringRoutingService.&amp;lt;&amp;gt;c__DisplayClass19_0.&amp;lt;&amp;lt;RouteToLocalModel&amp;gt;b__0&amp;gt;d.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.WaitOnUIThreadForTaskCompletion[T](Task`1 task)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.CommitHandler.TryCommitPendingUIEdits()&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.MainWindow.OnFileSaving(FileSavingEventArgs eventArgs)&lt;BR /&gt;at Microsoft.Practices.Prism.PubSubEvents.EventSubscription`1.&amp;lt;&amp;gt;c__DisplayClass2.&amp;lt;GetExecutionStrategy&amp;gt;b__0(Object[] arguments)&lt;BR /&gt;at Microsoft.Practices.Prism.PubSubEvents.EventBase.InternalPublish(Object[] arguments)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Services.EventAggregationService.&amp;lt;&amp;gt;c__DisplayClass22_0`2.&amp;lt;PublishAndMarshalExceptions&amp;gt;b__0()&lt;BR /&gt;at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)&lt;/P&gt;&lt;P&gt;PowerBINonFatalError:&lt;BR /&gt;{"AppName":"PBIDesktop","AppVersion":"2.123.742.0","ModuleName":"Microsoft.PowerBI.Modeler.dll","Component":"Microsoft.PowerBI.Modeler.ModelManager+&amp;lt;&amp;gt;c__DisplayClass215_0","Error":"Microsoft.PowerBI.Modeler.ModelingASOperationException","MethodDef":"&amp;lt;SaveChanges&amp;gt;b__0 - PFE_XL_CALCCOLUMN_CIRCULAR_DEPENDENCIES","ErrorOffset":"97","ErrorCode":""}&lt;/P&gt;&lt;P&gt;InnerException0.Stack Trace:&lt;BR /&gt;at Microsoft.AnalysisServices.Tabular.Model.SaveChangesImpl(SaveFlags flags, Int32 maxParallelism)&lt;BR /&gt;at Microsoft.PowerBI.Modeler.ModelManager.&amp;lt;&amp;gt;c__DisplayClass215_0.&amp;lt;SaveChanges&amp;gt;b__0()&lt;/P&gt;&lt;P&gt;OS Version:&lt;BR /&gt;Microsoft Windows NT 10.0.19044.0 (x64 en-US)&lt;/P&gt;&lt;P&gt;CLR Version:&lt;BR /&gt;4.8 or later [Release Number = 528372]&lt;/P&gt;&lt;P&gt;Peak Virtual Memory:&lt;BR /&gt;72.6 GB&lt;/P&gt;&lt;P&gt;Private Memory:&lt;BR /&gt;1.91 GB&lt;/P&gt;&lt;P&gt;Peak Working Set:&lt;BR /&gt;1.77 GB&lt;/P&gt;&lt;P&gt;IE Version:&lt;BR /&gt;11.3636.19041.0&lt;/P&gt;&lt;P&gt;User ID:&lt;BR /&gt;59ab7ff0-29a3-4721-be97-cfff53061e0a&lt;/P&gt;&lt;P&gt;Workbook Package Info:&lt;BR /&gt;1* - en-US, Query Groups: 4, fastCombine: Disabled, runBackgroundAnalysis: False.&lt;/P&gt;&lt;P&gt;Telemetry Enabled:&lt;BR /&gt;True&lt;/P&gt;&lt;P&gt;Model Default Mode:&lt;BR /&gt;Composite&lt;/P&gt;&lt;P&gt;Model Version:&lt;BR /&gt;PowerBI_V3&lt;/P&gt;&lt;P&gt;Enabled Preview Features:&lt;BR /&gt;PBI_shapeMapVisualEnabled&lt;BR /&gt;PBI_qnaLiveConnect&lt;BR /&gt;PBI_b2bExternalDatasetSharing&lt;BR /&gt;PBI_enhancedTooltips&lt;BR /&gt;PBI_sparklines&lt;BR /&gt;PBI_scorecardVisual&lt;BR /&gt;PBI_NlToDax&lt;BR /&gt;PBI_fieldParametersSuperSwitch&lt;BR /&gt;PBI_angularRls&lt;BR /&gt;PBI_onObject&lt;BR /&gt;PBI_backstageUI&lt;BR /&gt;PBI_setLabelOnExportPdf&lt;BR /&gt;PBI_dynamicFormatString&lt;BR /&gt;PBI_oneDriveSave&lt;BR /&gt;PBI_oneDriveShare&lt;BR /&gt;PBI_gitIntegration&lt;BR /&gt;PBI_newCard&lt;BR /&gt;PBI_buttonSlicerAuthoring&lt;BR /&gt;PBI_modelExplorer&lt;BR /&gt;PBI_daxQueryView&lt;BR /&gt;PBI_aiNarrativesVisual&lt;BR /&gt;PBI_qnaImproveLsdlCopilot&lt;/P&gt;&lt;P&gt;Disabled Preview Features:&lt;BR /&gt;PBI_SpanishLinguisticsEnabled&lt;/P&gt;&lt;P&gt;Disabled DirectQuery Options:&lt;BR /&gt;TreatHanaAsRelationalSource&lt;/P&gt;&lt;P&gt;Cloud:&lt;BR /&gt;GlobalCloud&lt;/P&gt;&lt;P&gt;DPI Scale:&lt;BR /&gt;150%&lt;/P&gt;&lt;P&gt;Supported Services:&lt;BR /&gt;Power BI&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 09:50:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3598562#M139045</guid>
      <dc:creator>Max_WH</dc:creator>
      <dc:date>2023-12-22T09:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3600484#M139120</link>
      <description>&lt;P&gt;Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2023 00:58:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3600484#M139120</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-25T00:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3601418#M139155</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421758" data-lia-user-login="Max_WH" class="lia-mention lia-mention-user"&gt;Max_WH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you provide&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;s&lt;/SPAN&gt;&lt;SPAN&gt;ample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 01:51:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3601418#M139155</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-12-26T01:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3601452#M139157</link>
      <description>&lt;P&gt;&lt;A title="Iterative Calculation" href="https://1drv.ms/x/s!AkBobBUrQptLiW-CoLL29aLkFLXB?e=hnhtpg" target="_blank" rel="noopener"&gt;Iterative Calculation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, Please find the link to the excel sheet above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, it is the iterative calculation for the 2 red-highlighted, which depend on each other starting from 2024Q1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX below causing the Circular dependency error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OP Demand = if (max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num])=0,if ([Ref_vs_VCDCNet]&amp;gt;0,[Reference Forecast **bleep** Qty],[Delfor CDFRLO **bleep** Qty]),if ([Ref_vs_VCDCNet]&amp;gt;0,[Reference Forecast **bleep** Qty]-calculate([OP Demand **bleep**],filter(ALLSELECTED('Forecast Time IBPDP'),'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]=(max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num])-1) )),[Delfor CDFRLO **bleep** Qty]-calculate([OP Demand **bleep**],filter(ALLSELECTED('Forecast Time IBPDP'),'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]=(max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num])-1) )))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OP Demand **bleep** = calculate(if (max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num])=0,max(IBPDP[BIFO Operational Reference Forecast Qty]),calculate(sum(IBPDP[BIFO Operational Reference Forecast Qty]),ALLEXCEPT('Forecast Time IBPDP','Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]),'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]=0)+calculate(max([OP Demand]),ALLEXCEPT('Forecast Time IBPDP','Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]),'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]&amp;gt;0 &amp;amp;&amp;amp; 'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]&amp;lt;=max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 02:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3601452#M139157</guid>
      <dc:creator>Max_WH</dc:creator>
      <dc:date>2023-12-26T02:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3602248#M139185</link>
      <description>&lt;P&gt;&lt;A title="Iterative calculation in Excel" href="https://onedrive.live.com/edit?id=4B9B422B156C6840!1263&amp;amp;resid=4B9B422B156C6840!1263&amp;amp;ithint=file%2cxlsx&amp;amp;authkey=!AIKgsvb1ouQUtcE&amp;amp;wdo=2&amp;amp;cid=4b9b422b156c6840" target="_blank" rel="noopener"&gt;Iterative calculation in Excel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, Please find the link to the excel sheet above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, it is the iterative calculation for the 2 red-highlighted, which depend on each other starting from 2024Q1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX below causing the Circular dependency error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OP Demand = if (max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num])=0,if ([Ref_vs_VCDCNet]&amp;gt;0,[Reference Forecast **bleep** Qty],[Delfor CDFRLO **bleep** Qty]),if ([Ref_vs_VCDCNet]&amp;gt;0,[Reference Forecast **bleep** Qty]-calculate([OP Demand **bleep**],filter(ALLSELECTED('Forecast Time IBPDP'),'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]=(max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num])-1) )),[Delfor CDFRLO **bleep** Qty]-calculate([OP Demand **bleep**],filter(ALLSELECTED('Forecast Time IBPDP'),'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]=(max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num])-1) )))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OP Demand **bleep** = calculate(if (max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num])=0,max(IBPDP[BIFO Operational Reference Forecast Qty]),calculate(sum(IBPDP[BIFO Operational Reference Forecast Qty]),ALLEXCEPT('Forecast Time IBPDP','Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]),'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]=0)+calculate(max([OP Demand]),ALLEXCEPT('Forecast Time IBPDP','Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]),'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]&amp;gt;0 &amp;amp;&amp;amp; 'Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]&amp;lt;=max('Forecast Time IBPDP'[Forecast Time.Forecast Quarter Indicator Num]))))&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 14:34:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3602248#M139185</guid>
      <dc:creator>Max_WH</dc:creator>
      <dc:date>2023-12-26T14:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3602514#M139190</link>
      <description>&lt;P&gt;Let's bring your data into usable format&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then we can add the easy cumulatives&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Zc6xDcUwCATQXaivODDYZozUUfZf45tIX7aUwsUdepj7FqO1ywWSE85Ej28gggRJefAKv3T1Pap7e0goMgbSrSaOzKy3RfU+TmHQUrPXpH9FW33jIVawXMIq2P+PuUVdq3oIJUY0JGtXbvD8AA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Quarter = _t, #"BIFO Operational Reference Forecast Qty" = _t, #"Delfor CDFRLO Qty" = _t, #"Reference Forecast Qty" = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Quarter", type text}, {"BIFO Operational Reference Forecast Qty", Currency.Type}, {"Delfor CDFRLO Qty", Currency.Type}, {"Reference Forecast Qty", Currency.Type}}), #"Added Custom" = Table.AddColumn(#"Changed Type", "**bleep** Delfor CDFRLO Qty", (k)=&amp;gt; List.Sum(Table.SelectRows(#"Changed Type",each [Quarter]&amp;lt;=k[Quarter])[Delfor CDFRLO Qty]),Currency.Type), #"Added Custom1" = Table.AddColumn(#"Added Custom", "**bleep** Reference Forecast Qty", (k)=&amp;gt; List.Sum(Table.SelectRows(#"Changed Type",each [Quarter]&amp;lt;=k[Quarter])[Reference Forecast Qty]),Currency.Type), #"Added Custom2" = Table.AddColumn(#"Added Custom1", "Ref vs VCD-C net", each [**bleep** Reference Forecast Qty]-[**bleep** Delfor CDFRLO Qty],Currency.Type) in #"Added Custom2"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then for the tricky part we are turning the tables and calculate the cumulative part first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;= Table.AddColumn(#"Added Custom2", "**bleep** OP Demand Should-Be", each if [#"Ref vs VCD-C net"]&amp;gt;0 then [**bleep** Reference Forecast Qty] else [**bleep** Delfor CDFRLO Qty],Currency.Type)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then from that we get the quarterly demand and the gap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Zc6xDcUwCATQXaivODDYZozUUfZf45tIX7aUwsUdepj7FqO1ywWSE85Ej28gggRJefAKv3T1Pap7e0goMgbSrSaOzKy3RfU+TmHQUrPXpH9FW33jIVawXMIq2P+PuUVdq3oIJUY0JGtXbvD8AA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Quarter = _t, #"BIFO Operational Reference Forecast Qty" = _t, #"Delfor CDFRLO Qty" = _t, #"Reference Forecast Qty" = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Quarter", type text}, {"BIFO Operational Reference Forecast Qty", Currency.Type}, {"Delfor CDFRLO Qty", Currency.Type}, {"Reference Forecast Qty", Currency.Type}}), #"Added Custom" = Table.AddColumn(#"Changed Type", "**bleep** Delfor CDFRLO Qty", (k)=&amp;gt; List.Sum(Table.SelectRows(#"Changed Type",each [Quarter]&amp;lt;=k[Quarter])[Delfor CDFRLO Qty]),Currency.Type), #"Added Custom1" = Table.AddColumn(#"Added Custom", "**bleep** Reference Forecast Qty", (k)=&amp;gt; List.Sum(Table.SelectRows(#"Changed Type",each [Quarter]&amp;lt;=k[Quarter])[Reference Forecast Qty]),Currency.Type), #"Added Custom2" = Table.AddColumn(#"Added Custom1", "Ref vs VCD-C net", each [**bleep** Reference Forecast Qty]-[**bleep** Delfor CDFRLO Qty],Currency.Type), #"Added Custom3" = Table.AddColumn(#"Added Custom2", "**bleep** OP Demand Should-Be", each if [#"Ref vs VCD-C net"]&amp;gt;0 then [**bleep** Reference Forecast Qty] else [**bleep** Delfor CDFRLO Qty],Currency.Type), #"Added Custom4" = Table.AddColumn(#"Added Custom3", "OP Demand Should-Be", (k)=&amp;gt; try k[#"**bleep** OP Demand Should-Be"]- Table.LastN(Table.SelectRows(#"Added Custom3",each [Quarter]&amp;lt;k[Quarter]),1){0}[#"**bleep** OP Demand Should-Be"] otherwise k[#"**bleep** OP Demand Should-Be"],Currency.Type), #"Added Custom5" = Table.AddColumn(#"Added Custom4", "Op Demand Gap", each [BIFO Operational Reference Forecast Qty]-[#"OP Demand Should-Be"],Currency.Type) in #"Added Custom5" &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This way you can avoid the circular reference.&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you know what&amp;nbsp;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;**bleep**&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;needs to be replaced with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 19:17:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3602514#M139190</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-26T19:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603182#M139210</link>
      <description>&lt;P&gt;Hi Ibendlin, the solution is superb! Can you advise the revised M query if there is another column "Program" in the data? i.e. to be group by "Program" like A, B, C etc.?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 08:44:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603182#M139210</guid>
      <dc:creator>Max_WH</dc:creator>
      <dc:date>2023-12-27T08:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603674#M139242</link>
      <description>&lt;P&gt;Please provide sample data &lt;STRONG&gt;that fully covers your issue&lt;/STRONG&gt;.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 13:32:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603674#M139242</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-27T13:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603804#M139248</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Matrix with an additional column Program (Group).&lt;/P&gt;&lt;P&gt;Thank you for your advice.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 04:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603804#M139248</guid>
      <dc:creator>Max_WH</dc:creator>
      <dc:date>2023-12-28T04:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603871#M139251</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603871#M139251</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-27T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603905#M139253</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;Please find the updated sample data&amp;nbsp;&lt;A title="Iterative Circular Calculation" href="https://1drv.ms/x/s!AkBobBUrQptLiW-CoLL29aLkFLXB?e=hnhtpg" target="_blank" rel="noopener"&gt;Iterative Circular Calculation&lt;/A&gt;&amp;nbsp; with column "Group". Thank you for helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 16:02:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603905#M139253</guid>
      <dc:creator>Max_WH</dc:creator>
      <dc:date>2023-12-27T16:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603934#M139254</link>
      <description>&lt;LI-CODE lang="markup"&gt;let
  Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("dZBBEsMgCEXv4poFIKgskxtkncn9rxFJW4tps3AG5s9T/9v3tCxLgsTIeZM+WANBg6K/C4IiAiKmAwInG/WhqCdXCkkJTCuYsCcCZubnznkqNXIM5GwrnpQnLvchY+D6wtY59oU/77U75y2IAkcIVTMY+o02Yeu6Ri01mpiXWcvgXlpU53pfLerfbKNe4C5pj1rKrCVwXqJFLS1qqfK/31sLRy0UtHRHgztO", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Group = _t, Quarter = _t, #"BIFO Operational Reference Forecast Qty" = _t, #"Delfor CDFRLO Qty" = _t, #"Reference Forecast Qty" = _t]), 
  #"Changed Type" = Table.TransformColumnTypes(
    Source, 
    {
      {"Quarter", type text}, 
      {"BIFO Operational Reference Forecast Qty", Currency.Type}, 
      {"Delfor CDFRLO Qty", Currency.Type}, 
      {"Reference Forecast Qty", Currency.Type}
    }
  ), 
  #"Added Custom" = Table.AddColumn(
    #"Changed Type", 
    "Cumul Delfor CDFRLO Qty", 
    (k) =&amp;gt;
      List.Sum(Table.SelectRows(#"Changed Type", each [Quarter] &amp;lt;= k[Quarter] and [Group]=k[Group])[Delfor CDFRLO Qty] ), 
    Currency.Type
  ), 
  #"Added Custom1" = Table.AddColumn(
    #"Added Custom", 
    "Cumul Reference Forecast Qty", 
    (k) =&amp;gt;
      List.Sum(
        Table.SelectRows(#"Changed Type", each [Quarter] &amp;lt;= k[Quarter] and [Group]=k[Group])[Reference Forecast Qty]
      ), 
    Currency.Type
  ), 
  #"Added Custom2" = Table.AddColumn(
    #"Added Custom1", 
    "Ref vs VCD-C net", 
    each [Cumul Reference Forecast Qty] - [Cumul Delfor CDFRLO Qty], 
    Currency.Type
  ), 
  #"Added Custom3" = Table.AddColumn(
    #"Added Custom2", 
    "Cumul OP Demand Should-Be", 
    each 
      if [#"Ref vs VCD-C net"] &amp;gt; 0 then
        [Cumul Reference Forecast Qty]
      else
        [Cumul Delfor CDFRLO Qty], 
    Currency.Type
  ), 
  #"Added Custom4" = Table.AddColumn(
    #"Added Custom3", 
    "OP Demand Should-Be", 
    (k) =&amp;gt;
      try
        k[#"Cumul OP Demand Should-Be"]
          - Table.LastN(Table.SelectRows(#"Added Custom3", each [Quarter] &amp;lt; k[Quarter] and [Group]=k[Group]), 1){0}[
            #"Cumul OP Demand Should-Be"
          ]
      otherwise
        k[#"Cumul OP Demand Should-Be"], 
    Currency.Type
  ), 
  #"Added Custom5" = Table.AddColumn(
    #"Added Custom4", 
    "Op Demand Gap", 
    each [BIFO Operational Reference Forecast Qty] - [#"OP Demand Should-Be"], 
    Currency.Type
  )
in
  #"Added Custom5"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Dec 2023 16:13:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3603934#M139254</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-27T16:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3605250#M139289</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Ibendlin, Thank you once again! But the "**bleep** OP demand should-be" of the very first quarter is equal to "BIFO Operational Reference Forecast Qty". Can you help to enlighten?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 00:30:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3605250#M139289</guid>
      <dc:creator>Max_WH</dc:creator>
      <dc:date>2023-12-30T00:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3605623#M139299</link>
      <description>&lt;P&gt;This is taken care of here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;#"Added Custom4" = Table.AddColumn(
    #"Added Custom3", 
    "OP Demand Should-Be", 
    (k) =&amp;gt;
      try
        k[#"Cumul OP Demand Should-Be"]
          - Table.LastN(Table.SelectRows(#"Added Custom3", each [Quarter] &amp;lt; k[Quarter] and [Group]=k[Group]), 1){0}[
            #"Cumul OP Demand Should-Be"
          ]
      otherwise
        k[#"Cumul OP Demand Should-Be"], 
    Currency.Type
  ),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;via the try ... otherwise ...&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Dec 2023 14:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3605623#M139299</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-28T14:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: a circular dependency was detected measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3607509#M139371</link>
      <description>&lt;P&gt;Hi Ibendlin,&lt;/P&gt;&lt;P&gt;Thank you very much for your help! Appreciated much!&lt;/P&gt;&lt;P&gt;I have changed slightly the below to accomodate&amp;nbsp;&lt;SPAN&gt;the "Cumul OP demand should-be" of the very first quarter equal to "BIFO Operational Reference Forecast Qty".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy new year and best wishes!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#"Added Custom3" = Table.AddColumn(&lt;BR /&gt;#"Added Custom2",&lt;BR /&gt;"Cumul OP Demand Should-Be",&lt;BR /&gt;each&lt;BR /&gt;if [#"Forecast Time.Forecast Quarter Indicator Num"]&amp;lt;=0 then&lt;BR /&gt;[BIFO Operational Reference Forecast Qty]&lt;BR /&gt;else&lt;BR /&gt;if [#"Ref vs VCD-C net"] &amp;gt; 0 then&lt;BR /&gt;[Cumul Reference Forecast Qty]&lt;BR /&gt;else&lt;BR /&gt;[Cumul Delfor CDFRLO Qty],&lt;BR /&gt;Int64.Type&lt;BR /&gt;),&lt;BR /&gt;#"Added Custom4" = Table.AddColumn(&lt;BR /&gt;#"Added Custom3",&lt;BR /&gt;"OP Demand Should-Be",&lt;BR /&gt;(k) =&amp;gt;&lt;BR /&gt;try&lt;BR /&gt;k[#"Cumul OP Demand Should-Be"]&lt;BR /&gt;- Table.LastN(Table.SelectRows(#"Added Custom3", each [Quarter] &amp;lt; k[Quarter] and [Product]=k[Product]), 1){0}[&lt;BR /&gt;#"Cumul OP Demand Should-Be"&lt;BR /&gt;]&lt;BR /&gt;otherwise&lt;BR /&gt;if k[#"Ref vs VCD-C net"] &amp;gt; 0 then&lt;BR /&gt;k[#"Cumul Reference Forecast Qty"]&lt;BR /&gt;else&lt;BR /&gt;k[#"Cumul Delfor CDFRLO Qty"],&lt;BR /&gt;Int64.Type&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 17:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/a-circular-dependency-was-detected-measure/m-p/3607509#M139371</guid>
      <dc:creator>Max_WH</dc:creator>
      <dc:date>2023-12-29T17:10:09Z</dc:date>
    </item>
  </channel>
</rss>

