Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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.
| Date | Income | Cap Gain | WITHDRAWN SHARES | TOTAL SHARES | ADJUSTED TOTAL SHARES |
| 8/10/1988 | 0.00 | 200,000.000 | 200,000.000 | ||
| 9/31/1988 | 0.000 | 0.000 | (826.72) | 200,000.000 | 199,173.280 |
| 9/30/1988 | 0.000 | 0.000 | (799.74) | 199,173.280 | 198,373.536 |
| 10/31/1988 | 0.000 | 0.000 | (784.68) | 198,373.536 | 197,588.853 |
| 11/30/1988 | 0.000 | 0.000 | (786.16) | 197,588.853 | 196,802.689 |
| 12/31/1988 | 0.000 | 0.000 | (784.68) | 196,802.689 | 196,018.006 |
| 1/31/1989 | 3058.273 | 4050.693 | (809.06) | 203,126.972 | 202,317.911 |
| 2/28/1989 | 0.000 | 0.000 | (823.45) | 202,317.911 | 201,494.459 |
| 12/24/1996 | 0.000 | 0.000 | (807.49) | 201,494.459 | 200,686.965 |
| 12/24/1996 | 0.000 | 0.000 | (774.47) | 200,686.965 | 199,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
Hi @Anonymous ,
You can refer to the link about circular dependencies :
Understanding Circular Dependencies in Tabular and PowerPivot
Best Regards,
Amy
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |