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
dansc0tt
New Member

Circular Measure Problem

Hi,

 

I'm trying to build a model that calculates profit after it has been adjusted for prior operating losses. In the example below you can see that operating profit in period 2 is a loss of $50. This loss is then carred forward and offsets profit in period 3 and period 4 (see adj profit which is the number i am trying to get to using DAX).

 

I think i can achieve this using a calculated column approach but really looking for any good ideas on how i might achieve this using measures (trying to avoid additional tables if possible). The circularity involved here has me stumped!

 

Appreciate any thoughts.

 

Dan

image.png

 

 

 

4 REPLIES 4
v-sihou-msft
Microsoft Employee
Microsoft Employee

@dansc0tt

 

I can't understand why the third row is not -25. 

 

For your expected result, you can create a calculated column like below: 

 

Adj Progit =
IF (
    Table[Op Profit] - Table[Loss from prior eriod]
        <= 0,
    0,
    Table[Op Profit] - Table[Loss from prior eriod]
)

Regards,

Thanks - this is helpful, but was looking for any thoughts on being able to do this with a measure rather than a calculated column. 

 

The third row is not -25 because you can only reduce your adj profit to minimum of zero in any period. The balance is then carried over to be used in future periods.

 

Dan

Which columns do you have calcualted already? Are they measures or calculated columns?  Or do you only have 'Period' and 'Op Profit' and need to calculate the rest?

Thanks Matt - I have only 'Period' and 'Op Profit' of which 'Op Profit' is a measure.

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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