Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

monaraya

Custom Calculation Issue with Circular Dependency Fields

Issue: Custom calculations with circular dependency fields were not updating while performing YTD and IF DAX functions.

Requirement: Get updated value in the 'Target Value' column for the GL_ACCT 3100000, which is (Value +YTD_PL) for the Month 02. In the below screenshot, the number highlighted in red should be the output for the 'Target Value' column for 3100000 GL_ACCT.

Measures and Calculated Columns that were fetching incorrect results:

1.Value = SUM(data[Amount])+[YTD]

2.YTD = TOTALYTD(

SUM(data[CM_PL]),

'Calendar Table'[Date])

4.New_Val = IF(

    data[GL_ACCT]=3100000,data[Value],data[Amount])

a2_2.png

 

Solution: Instead of creating the multiple measures, we have created variables in a single measure. The new measure 'Target value' shows the right values in the screenshot.

Target Value = var bc = SUM(data[Amount])

var ab = SUM(data[Amount]) + TOTALYTD(

SUM(data[CM_PL]),

'Calendar Table'[Date]

) Return IF(SUM(data[GL_ACCT])=3100000,ab,bc)

a1_2.png

 

 

 

Author: Arunkumar Karingali

Reviewer:Mounika Narayana Reddy

 

Comments