Forum Discussion

VivekPBI's avatar
VivekPBI
Frequent Visitor
7 years ago
Solved

power bi community

Hi All,

Need your Help....

I am facing circular dependency error while creating calculated colums.

I have create four measures MTD Actual ,MTD Plan ,YTD Actual & YTD Plan and one backend generated colum Flags.

Now I have to calculate varriance MTD and Varriance YTD  with below calculation

YTD varriance = IF(VW_ARC_DETAILED_TRACKER[FLAGS]="POST",DIVIDE(CALCULATE([YTD ACTUAL]),CALCULATE([YTD PLAN]))-1,
1-DIVIDE(CALCULATE([YTD ACTUAL]),CALCULATE([YTD PLAN])))

 

First one is working fine but second one is giving error of circular dependency.

 

In case if i create measure instead of colum ,it doesnot allow to use colum (Flags) in calculation.

 

Thanks in Advance!!!!!!!!

 

  • Hi VivekPBI,

     

    Which one is the second one?

    Surely we can use column (Flags) in a measure by working with functions like MIN, MAX, etc. 

    Seems the [YTD varriance] can't be calculated column. It's better to be a measure. 

    Can you share a sample, please?

     

     

    Best Regards,
    Dale

2 Replies

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi VivekPBI,

     

    Which one is the second one?

    Surely we can use column (Flags) in a measure by working with functions like MIN, MAX, etc. 

    Seems the [YTD varriance] can't be calculated column. It's better to be a measure. 

    Can you share a sample, please?

     

     

    Best Regards,
    Dale