cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sv12 Regular Visitor
Regular Visitor

Circular Dependency Calculation

Hi,

I am trying to replicate the below calculations in Power BI.

 

Below, the Red Highlighted part is the source data. Black Highlighted are to be calculated.

 

The formula for Total Shares in Excel: 

If(Date = 8/10/1988, 200000, Income + Cap Gain + Previous Value of Adjusted Total Shares)

Formula for Adjusted Total Shares in Excel: 

Total Shares + Withdrawn shares

 

There is a circular dependancy on these 2 columns.

 

DateIncome Cap GainWITHDRAWN SHARESTOTAL SHARESADJUSTED TOTAL SHARES
      
8/10/1988  0.00200,000.000200,000.000
9/31/19880.0000.000(826.72)200,000.000199,173.280
9/30/19880.0000.000(799.74)199,173.280198,373.536
10/31/19880.0000.000(784.68)198,373.536197,588.853
11/30/19880.0000.000(786.16)197,588.853196,802.689
12/31/19880.0000.000(784.68)196,802.689196,018.006
1/31/19893058.2734050.693(809.06)203,126.972202,317.911
2/28/19890.0000.000(823.45)202,317.911201,494.459
12/24/19960.0000.000(807.49)201,494.459200,686.965
12/24/19960.0000.000(774.47)200,686.965199,912.492

 

I am trying to calculate these as Power BI measures, but a circular dependancy error is been thrown.

 

Any help would be appreciated.

 

Thanks

1 REPLY 1
Community Support Team
Community Support Team

Re: Circular Dependency Calculation

Hi @sv12 ,

 

You can refer to the link about circular dependencies :

Understanding Circular Dependencies in Tabular and PowerPivot

Circular Dependencies in DAX

 

Best Regards,

Amy

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 318 members 3,090 guests
Please welcome our newest community members: