Forum Discussion

bexbissell's avatar
bexbissell
Helper I
2 years ago
Solved

Circular dependency on calculated column

Hi community, I have an issue with a circular dependency on a calculated column. I have created a first calculated column on my factFundReport table, called 'New TNAV' that works perfectly fine: ...
  • bexbissell's avatar
    bexbissell
    2 years ago

    Hi v-xiandat-msft,

    Thank you for your reply and taking the time to explain the nuances of calculated columns - I still have a lot to learn about Power BI and DAX!

    Your comment got me thinking about the many-to-one relationship in my factFundReport to factFund tables and, seeing as I only want to find one factFund entry I used the RELATED instead of LOOKUPVALUE, which solved my circular dependency!

     

     

    New Subfunds = 
    VAR SubFundCount = RELATED(factFund[Sub Fund Count])    
        // LOOKUPVALUE
        //     (
        //         factFund[Sub Fund Count],
        //         factFund[FundKey], factFundReport[FundKey]
        //     )     
    RETURN IF(factFundReport[Is New],SubFundCount, 0)

     

     


    Hoping this can help others stuck on circular dependencies.