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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.