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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
georgy
Frequent Visitor

circular reference error

Hi All,

I have problem where I need to use prior period closing balance as current period opening balance. Something like table below. The problem is that ADDITION column is % of opening balance and there many more other things (% and absolute values which contribute to closing balance) in real data so I can't use formulas. I literally need to use D2 for B3 value in Power BI. Is it possible?

Thank you.

 

Capture.JPG

2 REPLIES 2
MFelix
Super User
Super User

Hi @georgy ,

 

Can you share some more information about the addition column especcially on how it returns the value based on the Opening Balance?

 

If the addition values was a column value you just needed to create the following two measures:

 

Opening Balance =
1
    + CALCULATE (
        SUM ( 'Addition Table'[Addition] );
        FILTER (
            ALL ( 'Addition Table'[Period] );
            'Addition Table'[Period] < MIN ( 'Addition Table'[Period] )
        )
    )

Closing period = [Opening Balance] + SUM('Addition Table'[Addition])

 

However this will only work if your column addition is based values you just need to define the opening balance for the first period. Being different calculation based on the percentages and other thins this need to be adjusted.

 

Check PBIX file attach.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





georgy
Frequent Visitor

Hi MFelix,

Thank you for a quick reply.

As mentioned additions are % of opening balance, there are losses % as well and other absolute values that change from month to month. Something like table below.

image.png

Cheers,

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors