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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
bidgeir
Most Valuable Professional
Most Valuable Professional

Calculating plan accuracy, circular reference

Hi all

 

Iยดm trying to calculate plan accuracy where I can "use" orders from +-1 week to fulfill the plan. As you can see in the image below I have 13 weeks. In those 13 weeks I have plan in column C and orders in column B. Columns A, B and C are my data, the rest is what I want to calculate. In column E I have calculated the Orders +-1 week but taking into account if there are any leftover from previous period. The problem is that the leftover are reliant on Orders +-1 week. This is possible in Excel because in the Orders +-1 week (column E) I reference leftover (column F) from the row above. So the leftover formula for line 3 is E3-C3 and the Orders +-1 week for line 3 is B4+IF(F2>SUM(B2:B3),SUM(B2:B3),IF(F2>0,F2,0)). 

 

bidgeir_0-1615203973704.png

 

In Power BI itยดs not possible to reference a column/measure that relies on the source column/measure. 

 

The goal are column G, H and I using only columns A, B and C. So my main goal is column H line 15 (the total accuracy) but I would like to calculate accuracy pr. line and covered batches as well. 

 

The datasource is not Excel and not in this exact format but itยดs reprecentative of the data source.

 

If anyone has an idea about how to go on about solving this in Power BI I would be very greatful. I donยดt care if the solution is in Power Query or DAX. You can download the Excel file with this example and another one here: https://tinyurl.com/4b55kaxh  

 

I have just fiddled a little with it in Power BI so I donยดt have any PBIX to share. 

 

/รsgeir

5 REPLIES 5
bertalan_ronai
Advocate I
Advocate I

Hi!

If you don't reference a measure but use the same DAX in the other measure as a variable then it might solve the referencing problem. I do admit it is just a quick guess on my part.

bidgeir
Most Valuable Professional
Most Valuable Professional

I simple cannot see how that is possible. The calculation for one use the other one and vice versa. But maybe Iยดm just blocked in my mind after looking at it from a certain point of view for too long

bidgeir
Most Valuable Professional
Most Valuable Professional

I have created a PBIX with the Excel imported if anyone prefers not to import then Excel data. You can find the PBIX here: https://tinyurl.com/yutx7st9 

bertalan_ronai
Advocate I
Advocate I

bidgeir
Most Valuable Professional
Most Valuable Professional

Good try but unfortunately not what I need. I have come to the conclusion that itยดs not possible (at least with my knowledge) so Iยดm not going to calculate it in this way. I going for a less accurate but good enough method of looking at the total period instead of focusing on each week.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (27)